Project
Loading...
Searching...
No Matches
o2::ft0::PMLookupTable Class Reference

#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.
 

Detailed Description

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.

Member Typedef Documentation

◆ ChannelID

Definition at line 32 of file PMLookupTable.h.

◆ PMHash

Definition at line 33 of file PMLookupTable.h.

◆ PMMap

Definition at line 34 of file PMLookupTable.h.

Member Function Documentation

◆ getPMHash()

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.

◆ getPMs()

const PMMap & o2::ft0::PMLookupTable::getPMs ( ) const
inlinenoexcept

Return all PM hashes and their sides. TCM entries are not included.

Definition at line 46 of file PMLookupTable.h.

◆ Instance()

const PMLookupTable & o2::ft0::PMLookupTable::Instance ( )
static

Return the process-wide immutable lookup table.

Definition at line 27 of file PMLookupTable.cxx.

◆ isASide()

bool o2::ft0::PMLookupTable::isASide ( PMHash  pmHash) const

Return true for an A-side PM and false for a C-side PM.

Definition at line 100 of file PMLookupTable.cxx.


The documentation for this class was generated from the following files: