![]() |
Belle II Software
release-08-02-04
|
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. More... | |
| unsigned | getFinesse (unsigned mergerID) const |
| Get finesse of copper board to which merger is connected. More... | |
| void | addMapping (unsigned mergerID, unsigned copperID, unsigned finesse) |
| Add new entry to the mapping table. More... | |
| unsigned | getMergerID (unsigned copperID, unsigned finesse) const |
| Get ID of merger connected to the given finesse of copper board. More... | |
| const std::vector< uint16_t > & | getCopperIDs () const |
| Get vector of IDs of copper boards. More... | |
| 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.
| 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.