34 auto it =
m_offmap.find (channel_id);
58const std::vector<LArRoIMap::COLL_ID>&
70 static const std::vector<COLL_ID> v ;
98 std::vector<COLL_ID>& v =
m_roimap[hashid_sam];
99 if (std::find (v.begin(), v.end(), robId) == v.end()) {
Mapping between calorimeter trigger id to offline/online Identifier.
std::unordered_map< Identifier, TT_ID > m_offmap
Map from offline ID to trigger tower ID.
std::unordered_map< TT_ID, std::vector< COLL_ID > > m_roimap
Map from trigger tower ID to list of ROBs.
LArRoIMap(TT_ID layer_hash_max)
Constructor.
std::unordered_map< Identifier, TT_ID > m_onlmap
Map from online ID to trigger tower ID.
bool validID(const TT_ID &tt_id) const
Check validity of a trigger tower ID.
TT_ID trigTowerID(const Identifier &channel_id) const
Translate offline channel identifier to trigger tower ID.
const std::vector< COLL_ID > & collectionID(const TT_ID &id) const
Get list of robIds for a given trigger tower ID.
void addEntry(const Identifier &id, const HWIdentifier &sigId, const HWIdentifier &robId, TT_ID hashid_sam)
Add a new entry to the map.
TT_ID m_layer_hash_max
Maximum hash ID.