ATLAS Offline Software
TGC_Hid2RESrcID.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONTGC_CNVTOOLS_TGC_HID2RESRCID
6 #define MUONTGC_CNVTOOLS_TGC_HID2RESRCID
7 
8 #include <vector>
9 #include <inttypes.h>
10 
11 class TgcRdo;
12 class Identifier;
13 class MuonTGC_CablingSvc;
14 
15 namespace Muon
16 {
17 
29  {
30  public:
31 
34 
37 
39  static uint32_t getRodID(const TgcRdo *rdo) ;
41  static uint32_t getRodID(uint16_t subDetectorId, uint16_t rodId) ;
43  static uint32_t getRodID(const Identifier & offlineId,
44  const MuonTGC_CablingSvc* cabling) ;
46  static uint32_t getRobID (uint32_t rod_id) ;
48  static uint32_t getRosID (uint32_t rob_id) ;
50  static uint32_t getDetID (uint32_t ros_id) ;
51 
53  const std::vector<uint32_t>& allRobIds() const { return m_robIDs; }
54 
56  void fillAllRobIds();
57 
58  private:
59  std::vector<uint32_t> m_robIDs;
60  };
61 
62 } // end of namespace
63 
64 #endif // MUONTGC_CNVTOOLS_TGC_HID2RESRCID
Muon::TGC_Hid2RESrcID::getRodID
static uint32_t getRodID(const TgcRdo *rdo)
Make a ROD Source ID for TGC RDO.
Definition: TGC_Hid2RESrcID.cxx:16
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
ReadCellNoiseFromCool.cabling
cabling
Definition: ReadCellNoiseFromCool.py:154
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
Muon::TGC_Hid2RESrcID::fillAllRobIds
void fillAllRobIds()
Fill all the ROB IDs.
Definition: TGC_Hid2RESrcID.cxx:83
Muon::TGC_Hid2RESrcID::getRosID
static uint32_t getRosID(uint32_t rob_id)
Make a ROS Source ID from a ROB source ID.
Definition: TGC_Hid2RESrcID.cxx:61
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
Muon::TGC_Hid2RESrcID::m_robIDs
std::vector< uint32_t > m_robIDs
Definition: TGC_Hid2RESrcID.h:59
Muon::TGC_Hid2RESrcID
Definition: TGC_Hid2RESrcID.h:29
Muon::TGC_Hid2RESrcID::TGC_Hid2RESrcID
TGC_Hid2RESrcID()
Constrcutor.
Definition: TGC_Hid2RESrcID.h:33
Muon::TGC_Hid2RESrcID::getRobID
static uint32_t getRobID(uint32_t rod_id)
Make a ROB Source ID from a ROD source ID.
Definition: TGC_Hid2RESrcID.cxx:53
Muon::TGC_Hid2RESrcID::allRobIds
const std::vector< uint32_t > & allRobIds() const
Return all the ROB IDs.
Definition: TGC_Hid2RESrcID.h:53
Muon::TGC_Hid2RESrcID::~TGC_Hid2RESrcID
~TGC_Hid2RESrcID()
Destrcutor.
Definition: TGC_Hid2RESrcID.h:36
TgcRdo
Definition: TgcRdo.h:22
MuonTGC_CablingSvc
Definition: MuonTGC_CablingSvc.h:31
Muon::TGC_Hid2RESrcID::getDetID
static uint32_t getDetID(uint32_t ros_id)
Make a SubDetector ID from ROS source ID.
Definition: TGC_Hid2RESrcID.cxx:72
Identifier
Definition: IdentifierFieldParser.cxx:14