Provides mapping between electronics module position within a TOP module and SCROD ID, COPPER and Finesse slot.
More...
#include <FrontEndMapper.h>
|
enum | {
c_numModules = 16
,
c_numColumns = 4
} |
| Number of TOP modules (number of physical ones can be less), number of electronic modules (SCROD's) per TOP module.
|
|
Provides mapping between electronics module position within a TOP module and SCROD ID, COPPER and Finesse slot.
Definition at line 31 of file FrontEndMapper.h.
◆ getCopperIDs()
const std::unordered_set<unsigned int>& getCopperIDs |
( |
| ) |
const |
|
inline |
Return a set of copper ID's.
- Returns
- copper ID's
Definition at line 126 of file FrontEndMapper.h.
std::unordered_set< unsigned int > m_copperIDs
COPPER ID's.
◆ getMap() [1/2]
Return map from TOP module side.
- Parameters
-
moduleID | TOP module ID |
bs | boardstack number |
- Returns
- pointer to map element or NULL
Definition at line 74 of file FrontEndMapper.h.
◆ getMap() [2/2]
Return map from SCROD side.
- Parameters
-
- Returns
- pointer to map element or NULL
Definition at line 87 of file FrontEndMapper.h.
◆ getMapFromCopper()
const TOPFrontEndMap* getMapFromCopper |
( |
unsigned |
copperID, |
|
|
int |
finesse |
|
) |
| const |
|
inline |
Return map from COPPER/Finesse side.
- Parameters
-
copperID | COPPER ID |
finesse | Finesse slot number |
- Returns
- pointer to map element or NULL
Definition at line 101 of file FrontEndMapper.h.
◆ getMapSize()
◆ getModuleCNumber()
int getModuleCNumber |
( |
int |
moduleID | ) |
const |
|
inline |
Returns module construction number.
- Parameters
-
moduleID | module ID (slot number) |
- Returns
- module construction number
Definition at line 136 of file FrontEndMapper.h.
◆ importPayload()
import mappings to database
- Parameters
-
Definition at line 170 of file FrontEndMapper.cc.
172 DBImportArray<TOPFrontEndMap> array;
174 array.appendNew(map);
std::vector< TOPFrontEndMap > m_mapping
mappings from gearbox
◆ initialize()
void initialize |
( |
const GearDir & |
frontEndMapping | ) |
|
◆ isValid()
check if the mapping is available
- Returns
- true if available
Definition at line 60 of file FrontEndMapper.h.
The documentation for this class was generated from the following files: