ATLAS Offline Software
ITkPixelCablingData.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 ITkPixelCablingData_h
5 #define ITkPixelCablingData_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, ITkPixelCablingData & cabling);
28  friend std::ostream& operator<<(std::ostream & os, const ITkPixelCablingData & cabling);
29  bool empty() const;
30  std::size_t size() const;
31  ITkPixelOnlineId onlineId(const Identifier & id) const;
32 
33 private:
34  std::unordered_map<Identifier, ITkPixelOnlineId> m_offline2OnlineMap;
35 };
36 // Magic "CLassID" for storage/retrieval in StoreGate
37 // These values produced using clid script.
38 // "clid ITkPixelCablingData"
39 // 140860927 ITkPixelCablingData
40 CLASS_DEF( ITkPixelCablingData , 140860927 , 1 )
41 //"clid -cs ITkPixelCablingData"
42 //143807283
44 #endif
ITkPixelCablingData::operator<<
friend std::ostream & operator<<(std::ostream &os, const ITkPixelCablingData &cabling)
stream insertion for debugging
Definition: ITkPixelCablingData.cxx:48
CondCont.h
Hold mappings of ranges to condition objects.
ITkPixelOnlineId.h
ITkPixelCablingData::operator>>
friend std::istream & operator>>(std::istream &is, ITkPixelCablingData &cabling)
stream extraction to read value from stream into ITkPixelCablingData
Definition: ITkPixelCablingData.cxx:35
ReadCellNoiseFromCool.cabling
cabling
Definition: ReadCellNoiseFromCool.py:154
CONDCONT_DEF
CONDCONT_DEF(ITkPixelCablingData, 143807283)
ITkPixelCablingData::m_offline2OnlineMap
std::unordered_map< Identifier, ITkPixelOnlineId > m_offline2OnlineMap
Definition: ITkPixelCablingData.h:34
ITkPixelCablingData::size
std::size_t size() const
Definition: ITkPixelCablingData.cxx:21
ITkPixelCablingData::empty
bool empty() const
Definition: ITkPixelCablingData.cxx:16
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
ITkPixelCablingData
Definition: ITkPixelCablingData.h:23
ITkPixelCablingData::onlineId
ITkPixelOnlineId onlineId(const Identifier &id) const
Definition: ITkPixelCablingData.cxx:26
ITkPixelOnlineId
Definition: ITkPixelOnlineId.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