ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
HighGranularityTimingDetector
HGTDMapping
HGTDMapping
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
12
#include "
HGTDMapping/HGTDOnlineID.h
"
13
14
// Athena includes
15
#include "
Identifier/IdentifierHash.h
"
16
#include "Identifier/Identifier.h"
17
#include "
AthenaKernel/CondCont.h
"
18
#include "
AthenaKernel/CLASS_DEF.h
"
19
//
20
#include <unordered_map>
21
22
23
24
class
HGTDMappingData
{
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
48
CLASS_DEF
(
HGTDMappingData
, 43043952, 1 );
49
CONDCONT_DEF
(
HGTDMappingData
, 64668622);
50
51
#endif
CondCont.h
Hold mappings of ranges to condition objects.
CONDCONT_DEF
#define CONDCONT_DEF(...)
Definition
CondCont.h:1413
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
HGTDOnlineID.h
IdentifierHash.h
HGTDMappingData
Data object containing the offline-online mapping for HGTD (based on ITkPixelCabling package).
Definition
HGTDMappingData.h:24
HGTDMappingData::onlineId
HGTDOnlineID onlineId(const Identifier &id) const
Definition
HGTDMappingData.cxx:17
HGTDMappingData::empty
bool empty() const
Definition
HGTDMappingData.cxx:9
HGTDMappingData::operator<<
friend std::ostream & operator<<(std::ostream &os, const HGTDMappingData &mapping)
stream insertion for debugging
Definition
HGTDMappingData.cxx:51
HGTDMappingData::m_hash2OnlineIdArray
std::array< HGTDOnlineID, NUMBER_OF_HASHES > m_hash2OnlineIdArray
Array for hash to onlineId; hash goes from 0-49536.
Definition
HGTDMappingData.h:43
HGTDMappingData::m_rodIdSet
std::set< std::uint32_t > m_rodIdSet
Set of robIds.
Definition
HGTDMappingData.h:42
HGTDMappingData::NUMBER_OF_HASHES
@ NUMBER_OF_HASHES
Definition
HGTDMappingData.h:37
HGTDMappingData::m_offline2OnlineMap
std::unordered_map< Identifier, HGTDOnlineID > m_offline2OnlineMap
Definition
HGTDMappingData.h:41
HGTDMappingData::size
std::size_t size() const
Definition
HGTDMappingData.cxx:13
HGTDMappingData::operator>>
friend std::istream & operator>>(std::istream &is, HGTDMappingData &mapping)
Definition
HGTDMappingData.cxx:25
HGTDOnlineID
Online Identifier for HGTD.
Definition
HGTDOnlineID.h:16
Identifier
Definition
IdentifierFieldParser.cxx:14
Generated on
for ATLAS Offline Software by
1.17.0