Project
Loading...
Searching...
No Matches
ROBoardResponse.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
16#ifndef O2_MID_ROBOARDRESPONSE_H
17#define O2_MID_ROBOARDRESPONSE_H
18
19#include <vector>
22
23namespace o2
24{
25namespace mid
26{
28{
29 public:
31 ROBoardResponse() = default;
33 ROBoardResponse(const std::vector<ROBoardConfig>& configurations);
35 ~ROBoardResponse() = default;
36
39 void set(const std::vector<ROBoardConfig>& configurations) { mConfigHandler.set(configurations); }
40
42 bool isZeroSuppressed(const ROBoard& loc) const;
43
47 bool applyZeroSuppression(std::vector<ROBoard>& locs) const;
48
52 std::vector<ROBoard> getRegionalResponse(const std::vector<ROBoard>& locs) const;
53
57 std::vector<ROBoard> getTriggerResponse(uint8_t triggerWord) const;
58
59 private:
60 ROBoardConfigHandler mConfigHandler;
61};
62
63} // namespace mid
64} // namespace o2
65
66#endif /* O2_MID_ROBOARDRESPONSE_H */
Structure to store the readout board information.
void set(const std::vector< ROBoardConfig > &configurations)
ROBoardResponse()=default
Default constructor.
~ROBoardResponse()=default
Default destructor.
std::vector< ROBoard > getRegionalResponse(const std::vector< ROBoard > &locs) const
std::vector< ROBoard > getTriggerResponse(uint8_t triggerWord) const
bool isZeroSuppressed(const ROBoard &loc) const
Returns true if the local board has no fired digits after zero suppression.
void set(const std::vector< ROBoardConfig > &configurations)
bool applyZeroSuppression(std::vector< ROBoard > &locs) const
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...