ATLAS Offline Software
MDT_Hid2RESrcID.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef __MDT_HID2RESRCID__
6 #define __MDT_HID2RESRCID__
7 
8 #include <stdint.h>
9 
10 #include <map>
11 
13 #include "GaudiKernel/MsgStream.h"
14 #include "GaudiKernel/StatusCode.h"
15 #include "Identifier/Identifier.h"
20 
21 // this class provides conversion between Rpc pad Id and RESrcID
22 // RESrcID is used for identifying each ROD.
23 // Ketevi A. Assamagan
24 // Jan-16-2003, BNL
25 // -------------------------
26 // Adapted for MDT
27 // Michela Biglietti
28 // March 2003, Naples
29 
31 public:
35 
38  StatusCode set(const MdtIdHelper* mdtId);
39 
41  void setSpecialROBNumber(int specialROBNumber) { m_specialROBNumber = specialROBNumber; }
44  uint32_t getRodID(const Identifier& offlineId) const;
45 
48  static uint32_t getRobID(uint32_t rod_id) ;
49 
52  static uint32_t getRosID(uint32_t rob_id) ;
53 
56  static uint32_t getDetID(uint32_t ros_id) ;
57 
58 private:
60 
62 
64 };
65 
66 #endif
MDT_Hid2RESrcID::m_specialROBNumber
int m_specialROBNumber
Definition: MDT_Hid2RESrcID.h:61
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
MDT_Hid2RESrcID::MDT_Hid2RESrcID
MDT_Hid2RESrcID()
constrcutor
Definition: MDT_Hid2RESrcID.cxx:24
MDT_Hid2RESrcID::getDetID
static uint32_t getDetID(uint32_t ros_id)
Make a SubDetector ID from ROS source ID.
Definition: MDT_Hid2RESrcID.cxx:112
MDT_Hid2RESrcID::getRobID
static uint32_t getRobID(uint32_t rod_id)
Make a ROB Source ID from a ROD source ID.
Definition: MDT_Hid2RESrcID.cxx:88
MDT_Hid2RESrcID::set
StatusCode set(const MdtIdHelper *mdtId)
intialize the cabling service
Definition: MDT_Hid2RESrcID.cxx:26
ReadCondHandle.h
MDT_Hid2RESrcID::setSpecialROBNumber
void setSpecialROBNumber(int specialROBNumber)
TMP method for sector 13 data.
Definition: MDT_Hid2RESrcID.h:41
MuonMDT_CablingMap.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MdtIdHelper
Definition: MdtIdHelper.h:61
MdtIdHelper.h
MDT_Hid2RESrcID::m_readKey
SG::ReadCondHandleKey< MuonMDT_CablingMap > m_readKey
Definition: MDT_Hid2RESrcID.h:63
ReadCondHandleKey.h
MDT_Hid2RESrcID::getRodID
uint32_t getRodID(const Identifier &offlineId) const
Definition: MDT_Hid2RESrcID.cxx:33
MDT_Hid2RESrcID::getRosID
static uint32_t getRosID(uint32_t rob_id)
Make a ROS Source ID from a ROB source ID.
Definition: MDT_Hid2RESrcID.cxx:102
SG::ReadCondHandleKey< MuonMDT_CablingMap >
AthService.h
MDT_Hid2RESrcID
Definition: MDT_Hid2RESrcID.h:30
MDT_Hid2RESrcID::m_mdtIdHelper
const MdtIdHelper * m_mdtIdHelper
Definition: MDT_Hid2RESrcID.h:59
Identifier
Definition: IdentifierFieldParser.cxx:14