![]() |
Project
|
#include <PMLookupTable.h>
Public Types | |
| using | ChannelID = uint16_t |
| using | PMHash = uint8_t |
| using | PMMap = std::map< PMHash, bool > |
Public Member Functions | |
| PMHash | getPMHash (ChannelID channelID) const |
| Return the PM hash assigned to a detector channel. | |
| bool | isASide (PMHash pmHash) const |
| Return true for an A-side PM and false for a C-side PM. | |
| const PMMap & | getPMs () const noexcept |
| Return all PM hashes and their sides. TCM entries are not included. | |
Static Public Member Functions | |
| static const PMLookupTable & | Instance () |
| Return the process-wide immutable lookup table. | |
Cached mapping between FT0 channels and PM modules.
The mapping is constructed once from SingleLUT and can then be reused by digitization, reconstruction, trigger and QA code without reparsing the LUT.
Definition at line 29 of file PMLookupTable.h.
Definition at line 32 of file PMLookupTable.h.
Definition at line 33 of file PMLookupTable.h.
| using o2::ft0::PMLookupTable::PMMap = std::map<PMHash, bool> |
Definition at line 34 of file PMLookupTable.h.
| PMLookupTable::PMHash o2::ft0::PMLookupTable::getPMHash | ( | ChannelID | channelID | ) | const |
Return the PM hash assigned to a detector channel.
Definition at line 89 of file PMLookupTable.cxx.
|
inlinenoexcept |
Return all PM hashes and their sides. TCM entries are not included.
Definition at line 46 of file PMLookupTable.h.
|
static |
Return the process-wide immutable lookup table.
Definition at line 27 of file PMLookupTable.cxx.
Return true for an A-side PM and false for a C-side PM.
Definition at line 100 of file PMLookupTable.cxx.