Belle II Software development
|
The Class for ARICH mapping of merger to copper boards. More...
#include <ARICHCopperMapping.h>
Public Member Functions | |
ARICHCopperMapping () | |
Default constructor. | |
unsigned | getCopperID (unsigned mergerID) const |
Get copper board to which merger is connected. | |
unsigned | getFinesse (unsigned mergerID) const |
Get finesse of copper board to which merger is connected. | |
void | addMapping (unsigned mergerID, unsigned copperID, unsigned finesse) |
Add new entry to the mapping table. | |
unsigned | getMergerID (unsigned copperID, unsigned finesse) const |
Get ID of merger connected to the given finesse of copper board. | |
const std::vector< uint16_t > & | getCopperIDs () const |
Get vector of IDs of copper boards. | |
void | print () const |
Print mapping parameters. | |
Private Member Functions | |
ClassDef (ARICHCopperMapping, 1) | |
ClassDef, must be the last term before the closing {}. | |
Private Attributes | |
std::vector< std::pair< uint16_t, uint16_t > > | m_merger2copper |
map of mergers to copper boards | |
std::map< uint16_t, std::vector< uint16_t > > | m_copper2merger |
map coppers to mergers | |
std::vector< uint16_t > | m_copperIDs |
vector of IDs of used copper boards | |
The Class for ARICH mapping of merger to copper boards.
This class provides ARICH mapping of merger to copper boards Cooper ID can be arbitrary number, finesse number goes from 0-3 Merger ID goes from 1 to 72
Definition at line 28 of file ARICHCopperMapping.h.
Default constructor.
Definition at line 21 of file ARICHCopperMapping.cc.
void addMapping | ( | unsigned | mergerID, |
unsigned | copperID, | ||
unsigned | finesse | ||
) |
Add new entry to the mapping table.
mergerID | ID of merger board |
copperID | copper board ID number |
finesse | finesse number |
Definition at line 38 of file ARICHCopperMapping.cc.
unsigned getCopperID | ( | unsigned | mergerID | ) | const |
Get copper board to which merger is connected.
mergerID | ID of merger board |
Definition at line 26 of file ARICHCopperMapping.cc.
|
inline |
Get vector of IDs of copper boards.
Definition at line 70 of file ARICHCopperMapping.h.
unsigned getFinesse | ( | unsigned | mergerID | ) | const |
Get finesse of copper board to which merger is connected.
mergerID | ID of merger board |
Definition at line 32 of file ARICHCopperMapping.cc.
unsigned getMergerID | ( | unsigned | copperID, |
unsigned | finesse | ||
) | const |
Get ID of merger connected to the given finesse of copper board.
copperID | copper board ID number |
finesse | finesse number |
Definition at line 58 of file ARICHCopperMapping.cc.
void print | ( | ) | const |
Print mapping parameters.
Definition at line 66 of file ARICHCopperMapping.cc.
|
private |
map coppers to mergers
Definition at line 81 of file ARICHCopperMapping.h.
|
private |
vector of IDs of used copper boards
Definition at line 83 of file ARICHCopperMapping.h.
|
private |
map of mergers to copper boards
Definition at line 79 of file ARICHCopperMapping.h.