42 unsigned getModuleID(
unsigned mergerID,
unsigned febSlot)
const;
79 void addMapping(
unsigned moduleID,
unsigned mergerID,
unsigned febSlot,
unsigned mergerSN);
The Class for ARICH mapping of modules to merger boards.
unsigned getMergerIDfromSN(unsigned mergerSN) const
Get ID of merger from serial number.
unsigned getModuleID(unsigned mergerID, unsigned febSlot) const
Get ID of module connected to merger at FEB slot.
std::vector< uint16_t > m_module2merger
map of modules to mergers
ARICHMergerMapping()
Default constructor.
std::vector< bool > m_isMapped
vector of mapped modules
ClassDef(ARICHMergerMapping, 2)
ClassDef, must be the last term before the closing {}.
std::vector< uint16_t > m_merger2module
map of mergers to modules
void addMapping(unsigned moduleID, unsigned mergerID, unsigned febSlot, unsigned mergerSN)
Add mapping entry.
unsigned getMergerID(unsigned moduleID) const
Get ID of merger to which module is connected.
unsigned getMergerSN(unsigned mergerID) const
Get serial number of marger from its ID.
void print() const
Pring mapping.
unsigned getFEBSlot(unsigned moduleID) const
Get FEB slot to which module is connected.
std::map< unsigned, unsigned > m_mergerID
map mergers ID to SN
Abstract base class for different kinds of events.