Belle II Software development
|
The Class for ARICH mapping of modules to merger boards. More...
#include <ARICHMergerMapping.h>
Public Member Functions | |
ARICHMergerMapping () | |
Default constructor. | |
unsigned | getModuleID (unsigned mergerID, unsigned febSlot) const |
Get ID of module connected to merger at FEB slot. | |
unsigned | getMergerID (unsigned moduleID) const |
Get ID of merger to which module is connected. | |
unsigned | getFEBSlot (unsigned moduleID) const |
Get FEB slot to which module is connected. | |
unsigned | getMergerIDfromSN (unsigned mergerSN) const |
Get ID of merger from serial number. | |
unsigned | getMergerSN (unsigned mergerID) const |
Get serial number of marger from its ID. | |
void | addMapping (unsigned moduleID, unsigned mergerID, unsigned febSlot, unsigned mergerSN) |
Add mapping entry. | |
void | print () const |
Pring mapping. | |
Private Member Functions | |
ClassDef (ARICHMergerMapping, 2) | |
ClassDef, must be the last term before the closing {}. | |
Private Attributes | |
std::vector< uint16_t > | m_merger2module |
map of mergers to modules | |
std::vector< uint16_t > | m_module2merger |
map of modules to mergers | |
std::vector< bool > | m_isMapped |
vector of mapped modules | |
std::map< unsigned, unsigned > | m_mergerID |
map mergers ID to SN | |
The Class for ARICH mapping of modules to merger boards.
This class provides ARICH mapping of HAPD modules to merger boards, and their FEB slots It is assumed merger ID going from 1:73, febSlot goes from 1:6 change to std::map if merger IDs are "non-trivial"
Definition at line 29 of file ARICHMergerMapping.h.
Default constructor.
Definition at line 17 of file ARICHMergerMapping.cc.
void addMapping | ( | unsigned | moduleID, |
unsigned | mergerID, | ||
unsigned | febSlot, | ||
unsigned | mergerSN | ||
) |
Add mapping entry.
moduleID | module ID number |
mergerID | merger ID number |
mergerSN | merger serial number |
febSlot | FEB slot |
Definition at line 59 of file ARICHMergerMapping.cc.
unsigned getFEBSlot | ( | unsigned | moduleID | ) | const |
Get FEB slot to which module is connected.
moduleID | module ID number |
Definition at line 38 of file ARICHMergerMapping.cc.
unsigned getMergerID | ( | unsigned | moduleID | ) | const |
Get ID of merger to which module is connected.
moduleID | module ID number |
Definition at line 31 of file ARICHMergerMapping.cc.
unsigned getMergerIDfromSN | ( | unsigned | mergerSN | ) | const |
Get ID of merger from serial number.
mergerSN | merger serial number |
Definition at line 51 of file ARICHMergerMapping.cc.
unsigned getMergerSN | ( | unsigned | mergerID | ) | const |
Get serial number of marger from its ID.
mergerID | merger ID number |
Definition at line 45 of file ARICHMergerMapping.cc.
unsigned getModuleID | ( | unsigned | mergerID, |
unsigned | febSlot | ||
) | const |
Get ID of module connected to merger at FEB slot.
mergerID | merger ID number |
febSlot | FEB slot |
Definition at line 24 of file ARICHMergerMapping.cc.
void print | ( | ) | const |
Pring mapping.
Definition at line 71 of file ARICHMergerMapping.cc.
|
private |
vector of mapped modules
Definition at line 91 of file ARICHMergerMapping.h.
|
private |
map of mergers to modules
Definition at line 88 of file ARICHMergerMapping.h.
|
private |
map mergers ID to SN
Definition at line 92 of file ARICHMergerMapping.h.
|
private |
map of modules to mergers
Definition at line 89 of file ARICHMergerMapping.h.