ATLAS Offline Software
HLTSrcIdMap.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 /**********************************************************************************
6  * @Project: HLT Steering
7  * @Package: HLTResultByteStream
8  * @class : HLTSrcIdMap
9  *
10  * @brief this class provides conversion between Lower level Source ID to
11  * higher level source ID for HLT ByteStream fragments.
12  *
13  *
14  * File and Version Information:
15  **********************************************************************************/
16 
17 #ifndef HLTSrcIdMap_h
18 #define HLTSrcIdMap_h
19 
20 #include <stdint.h>
21 #include "eformat/SourceIdentifier.h"
22 
23 namespace HLT {
24 
33  class HLTSrcIdMap {
34 
35  public:
36 
39  HLTSrcIdMap() : m_detId(eformat::OTHER) {}
40 
43  uint32_t getRobID ( uint32_t rod_id=0) const;
44 
47  uint32_t getRosID ( uint32_t rob_id=0) const;
48 
51  uint32_t getDetID ( uint32_t ros_id=0) const;
52 
53  void setDetId(eformat::SubDetector detId) { m_detId = detId; }
54 
55  private:
56 
57  eformat::SubDetector m_detId;
58 
59  };
60 }
61 
62 #endif
eformat
Definition: L1CaloBsDecoderUtil.h:11
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
HLT::HLTSrcIdMap::getRobID
uint32_t getRobID(uint32_t rod_id=0) const
Make a ROB Source ID from a ROD source ID.
Definition: HLTSrcIdMap.cxx:13
HLT::HLTSrcIdMap::getDetID
uint32_t getDetID(uint32_t ros_id=0) const
Make a SubDetector ID from ROS source ID.
Definition: HLTSrcIdMap.cxx:24
HLT::HLTSrcIdMap::m_detId
eformat::SubDetector m_detId
sub detector ID
Definition: HLTSrcIdMap.h:67
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition: HLTResultReader.h:26
HLT::HLTSrcIdMap::setDetId
void setDetId(eformat::SubDetector detId)
setter for the detector ID
Definition: HLTSrcIdMap.h:63
HLT::HLTSrcIdMap::getRosID
uint32_t getRosID(uint32_t rob_id=0) const
Make a ROS Source ID from a ROB source ID.
Definition: HLTSrcIdMap.cxx:19
HLT::HLTSrcIdMap::HLTSrcIdMap
HLTSrcIdMap()
constrcutor
Definition: HLTSrcIdMap.h:49