ATLAS Offline Software
|
Mapping between calorimeter trigger id to offline/online Identifier. More...
#include <LArRoIMap.h>
Public Types | |
typedef unsigned int | TT_ID |
typedef HWIdentifier | COLL_ID |
Public Member Functions | |
LArRoIMap (TT_ID layer_hash_max) | |
Constructor. More... | |
TT_ID | trigTowerID (const Identifier &channel_id) const |
Translate offline channel identifier to trigger tower ID. More... | |
TT_ID | trigTowerID (const HWIdentifier &id) const |
Translate online channel identifier to trigger tower ID. More... | |
const std::vector< COLL_ID > & | collectionID (const TT_ID &id) const |
Get list of robIds for a given trigger tower ID. More... | |
bool | validID (const TT_ID &tt_id) const |
Check validity of a trigger tower ID. More... | |
void | addEntry (const Identifier &id, const HWIdentifier &sigId, const HWIdentifier &robId, TT_ID hashid_sam) |
Add a new entry to the map. More... | |
Private Attributes | |
TT_ID | m_layer_hash_max |
Maximum hash ID. More... | |
std::unordered_map< Identifier, TT_ID > | m_offmap |
Map from offline ID to trigger tower ID. More... | |
std::unordered_map< Identifier, TT_ID > | m_onlmap |
Map from online ID to trigger tower ID. More... | |
std::unordered_map< TT_ID, std::vector< COLL_ID > > | m_roimap |
Map from trigger tower ID to list of ROBs. More... | |
Mapping between calorimeter trigger id to offline/online Identifier.
Definition at line 30 of file LArRoIMap.h.
typedef HWIdentifier LArRoIMap::COLL_ID |
Definition at line 35 of file LArRoIMap.h.
typedef unsigned int LArRoIMap::TT_ID |
Definition at line 34 of file LArRoIMap.h.
LArRoIMap::LArRoIMap | ( | TT_ID | layer_hash_max | ) |
Constructor.
layer_hash_max | Maximum hash value. |
Definition at line 23 of file LArRoIMap.cxx.
void LArRoIMap::addEntry | ( | const Identifier & | id, |
const HWIdentifier & | sigId, | ||
const HWIdentifier & | robId, | ||
TT_ID | hashid_sam | ||
) |
Add a new entry to the map.
id | Offline channel ID. |
sigId | Online channel ID. |
rob | ID. |
hashid_sam | Trigger tower ID. |
Definition at line 91 of file LArRoIMap.cxx.
const std::vector< LArRoIMap::COLL_ID > & LArRoIMap::collectionID | ( | const TT_ID & | id | ) | const |
LArRoIMap::TT_ID LArRoIMap::trigTowerID | ( | const HWIdentifier & | id | ) | const |
Translate online channel identifier to trigger tower ID.
Definition at line 45 of file LArRoIMap.cxx.
LArRoIMap::TT_ID LArRoIMap::trigTowerID | ( | const Identifier & | channel_id | ) | const |
Translate offline channel identifier to trigger tower ID.
Definition at line 32 of file LArRoIMap.cxx.
Check validity of a trigger tower ID.
Definition at line 78 of file LArRoIMap.cxx.
|
private |
Maximum hash ID.
Definition at line 85 of file LArRoIMap.h.
|
private |
Map from offline ID to trigger tower ID.
Definition at line 88 of file LArRoIMap.h.
|
private |
Map from online ID to trigger tower ID.
Definition at line 91 of file LArRoIMap.h.
Map from trigger tower ID to list of ROBs.
Definition at line 94 of file LArRoIMap.h.