ATLAS Offline Software
Loading...
Searching...
No Matches
HGTDMappingData.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef HGTDMappingData_h
5#define HGTDMappingData_h
11
13
14// Athena includes
16#include "Identifier/Identifier.h"
19//
20#include <unordered_map>
21
22
23
25
26 public:
27 //stream extraction to read value from stream into HGTDMappingData
28 friend std::istream& operator>>(std::istream & is, HGTDMappingData & mapping);
30 friend std::ostream& operator<<(std::ostream & os, const HGTDMappingData & mapping);
31
32 bool empty() const;
33 std::size_t size() const;
34 HGTDOnlineID onlineId(const Identifier & id) const;
35
36 // HGTD contains 8032 modules, per sensor?
37 enum {NUMBER_OF_HASHES=8032}; // In HGTD, we have 16064 chips.
38
39
40 private:
41 std::unordered_map<Identifier, HGTDOnlineID> m_offline2OnlineMap;
42 std::set<std::uint32_t> m_rodIdSet;
43 std::array<HGTDOnlineID, NUMBER_OF_HASHES> m_hash2OnlineIdArray;
44
45
46};
47
48CLASS_DEF( HGTDMappingData , 43043952, 1 );
50
51#endif
Hold mappings of ranges to condition objects.
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Data object containing the offline-online mapping for HGTD (based on ITkPixelCabling package)
HGTDOnlineID onlineId(const Identifier &id) const
bool empty() const
friend std::ostream & operator<<(std::ostream &os, const HGTDMappingData &mapping)
stream insertion for debugging
std::array< HGTDOnlineID, NUMBER_OF_HASHES > m_hash2OnlineIdArray
Array for hash to onlineId; hash goes from 0-49536.
std::set< std::uint32_t > m_rodIdSet
Set of robIds.
std::unordered_map< Identifier, HGTDOnlineID > m_offline2OnlineMap
std::size_t size() const
friend std::istream & operator>>(std::istream &is, HGTDMappingData &mapping)
Online Identifier for HGTD.