ATLAS Offline Software
ITkStripCablingData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef ITkStripCablingData_h
5 #define ITkStripCablingData_h
6 
14 
15 // Athena includes
16 #include "Identifier/Identifier.h"
17 #include "AthenaKernel/CLASS_DEF.h"
18 #include "AthenaKernel/CondCont.h"
19 //STL
20 #include <unordered_map>
21 #include <iosfwd>
22 
24 public:
26  friend std::istream& operator>>(std::istream & is, ITkStripCablingData & cabling);
28  friend std::ostream& operator<<(std::ostream & os, const ITkStripCablingData & cabling);
29  bool empty() const;
30  std::size_t size() const;
31  ITkStripOnlineId onlineId(const Identifier & id) const;
32 
33 private:
34  std::unordered_map<Identifier, ITkStripOnlineId> m_offline2OnlineMap;
35 };
36 // Magic "CLassID" for storage/retrieval in StoreGate
37 // These values produced using clid script.
38 // "clid ITkStripCablingData"
39 // 92425761 ITkStripCablingData
40 CLASS_DEF( ITkStripCablingData , 92425761 , 1 )
41 //"clid -cs ITkStripCablingData"
42 // 133529577
44 #endif
CondCont.h
Hold mappings of ranges to condition objects.
ITkStripCablingData::empty
bool empty() const
Definition: ITkStripCablingData.cxx:17
ITkStripCablingData::m_offline2OnlineMap
std::unordered_map< Identifier, ITkStripOnlineId > m_offline2OnlineMap
Definition: ITkStripCablingData.h:34
ITkStripCablingData::size
std::size_t size() const
Definition: ITkStripCablingData.cxx:22
ITkStripCablingData
Definition: ITkStripCablingData.h:23
ReadCellNoiseFromCool.cabling
cabling
Definition: ReadCellNoiseFromCool.py:154
CONDCONT_DEF
CONDCONT_DEF(ITkStripCablingData, 133529577)
ITkStripCablingData::onlineId
ITkStripOnlineId onlineId(const Identifier &id) const
Definition: ITkStripCablingData.cxx:27
ITkStripCablingData::operator<<
friend std::ostream & operator<<(std::ostream &os, const ITkStripCablingData &cabling)
stream insertion for debugging
Definition: ITkStripCablingData.cxx:49
ITkStripOnlineId.h
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
ITkStripCablingData::operator>>
friend std::istream & operator>>(std::istream &is, ITkStripCablingData &cabling)
stream extraction to read value from stream into ITkStripCablingData
Definition: ITkStripCablingData.cxx:36
ITkStripOnlineId
Definition: ITkStripOnlineId.h:16
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:64
CLASS_DEF.h
macros to associate a CLID to a type
Identifier
Definition: IdentifierFieldParser.cxx:14