ATLAS Offline Software
TileHid2RESrcID.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TILEBYTESTREAM_TILEHID2RESRCID_H
6 #define TILEBYTESTREAM_TILEHID2RESRCID_H
7 
8 #include "eformat/FullEventFragment.h"
9 
10 class TileHWID;
11 class HWIdentifier;
12 class MsgStream;
13 
14 #include <map>
15 #include <vector>
16 #include <string>
17 #include <stdint.h>
18 
29 
30 public:
31 
32  typedef int COLLECTION_ID;
33 
36  TileHid2RESrcID(const TileHWID* tileHWID=0, uint32_t runnum=0);
37  void setTileHWID (const TileHWID* tileHWID, uint32_t runnum=0);
38 
41 
42  void initialize(const std::vector<std::vector<uint32_t> > & fullmap);
43 
44  void setROD2ROBmap (const std::vector<std::string> & ROD2ROB,
45  MsgStream & log);
46 
47  void setROD2ROBmap (const eformat::FullEventFragment<const uint32_t*> * event,
48  bool& of2Default,
49  MsgStream & log);
50 
51  void setBSfrag (int frag_id, uint32_t bs_frag);
52  void setDrawerType (int frag_id, uint32_t type);
53 
54  void printSpecial (MsgStream & log);
55 
58  uint32_t getRobFromFragID (int frag_id) const;
59  uint32_t getRobFromTileMuRcvFragID (int frag_id) const;
60 
63  uint32_t getRodID (int frag_id) const;
64  uint32_t getRodTileMuRcvID (int frag_id) const;
65 
68  uint32_t getRobID ( uint32_t rod_id) const;
69  uint32_t getRobID_8 ( uint32_t rod_id) const;
70 
73  uint32_t getRosID ( uint32_t rob_id) const;
74  uint32_t getRosID_8 ( uint32_t rob_id) const;
75 
78  uint32_t getDetID ( uint32_t ros_id) const;
79 
82  uint32_t getRunNum () { return m_runnum; };
83 
86  int getOfflineFragID(uint32_t bs_frag_id) const;
87  uint32_t getBSfragID(int frag_id) const;
88  uint32_t getDrawerType(int frag_id) const;
89  const std::vector<uint32_t> & getDrawerInfo(int frag_id) const;
90 
91 private:
92 
94  typedef std::map<int, uint32_t> FRAGRODMAP;
95  typedef std::map<uint32_t, int> BS2OFFLINEMAP;
96  typedef std::map<int, std::vector<uint32_t> > FRAGFULLMAP;
101  std::vector<uint32_t> m_defaultDrawer;
102 
103  void updateBSmap();
104 };
105 
106 
107 #include "AthenaKernel/CLASS_DEF.h"
108 #include "AthenaKernel/CondCont.h"
109 
110 CLASS_DEF(TileHid2RESrcID, 22911658, 0)
112 
113 #endif
TileHid2RESrcID::initialize
void initialize(uint32_t runnum)
Definition: TileHid2RESrcID.cxx:60
python.utils.AtlRunQueryDQUtils.runnum
runnum
Definition: AtlRunQueryDQUtils.py:214
TileHid2RESrcID::getRodTileMuRcvID
uint32_t getRodTileMuRcvID(int frag_id) const
Definition: TileHid2RESrcID.cxx:586
TileHid2RESrcID::getRobID
uint32_t getRobID(uint32_t rod_id) const
Make a ROB Source ID from a ROD source ID.
Definition: TileHid2RESrcID.cxx:550
TileHid2RESrcID::COLLECTION_ID
int COLLECTION_ID
Definition: TileHid2RESrcID.h:32
TileHid2RESrcID::getOfflineFragID
int getOfflineFragID(uint32_t bs_frag_id) const
Retrieve extra info - ByteStream frag ID and drawer typefor a given transient fragment ID.
Definition: TileHid2RESrcID.cxx:524
TileHid2RESrcID::setBSfrag
void setBSfrag(int frag_id, uint32_t bs_frag)
Definition: TileHid2RESrcID.cxx:421
CondCont.h
Hold mappings of ranges to condition objects.
CONDCONT_DEF
CONDCONT_DEF(TileHid2RESrcID, 23187372)
TileHid2RESrcID::getDetID
uint32_t getDetID(uint32_t ros_id) const
Make a SubDetector ID from ROS source ID.
Definition: TileHid2RESrcID.cxx:570
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TileHid2RESrcID::m_TileMuRcvRunnum
uint32_t m_TileMuRcvRunnum
Definition: TileHid2RESrcID.h:100
TileHid2RESrcID::setROD2ROBmap
void setROD2ROBmap(const std::vector< std::string > &ROD2ROB, MsgStream &log)
Definition: TileHid2RESrcID.cxx:172
TileHid2RESrcID::getRobFromFragID
uint32_t getRobFromFragID(int frag_id) const
make a ROB SrcID for a fragment ID
Definition: TileHid2RESrcID.cxx:457
TileHid2RESrcID::getRobFromTileMuRcvFragID
uint32_t getRobFromTileMuRcvFragID(int frag_id) const
Definition: TileHid2RESrcID.cxx:579
TileHid2RESrcID::FRAGRODMAP
std::map< int, uint32_t > FRAGRODMAP
Definition: TileHid2RESrcID.h:94
TileHid2RESrcID::getRunNum
uint32_t getRunNum()
Retrieve run number for which hash was initialized.
Definition: TileHid2RESrcID.h:82
TileHid2RESrcID::updateBSmap
void updateBSmap()
Definition: TileHid2RESrcID.cxx:536
TileHid2RESrcID::printSpecial
void printSpecial(MsgStream &log)
Definition: TileHid2RESrcID.cxx:600
TileHid2RESrcID::BS2OFFLINEMAP
std::map< uint32_t, int > BS2OFFLINEMAP
Definition: TileHid2RESrcID.h:95
TileHid2RESrcID::setDrawerType
void setDrawerType(int frag_id, uint32_t type)
Definition: TileHid2RESrcID.cxx:437
HWIdentifier
Definition: HWIdentifier.h:13
TileHid2RESrcID
This class provides conversion between fragment ID and RESrcID.
Definition: TileHid2RESrcID.h:28
TileHid2RESrcID::setTileHWID
void setTileHWID(const TileHWID *tileHWID, uint32_t runnum=0)
Definition: TileHid2RESrcID.cxx:32
TileHWID
Helper class for TileCal online (hardware) identifiers.
Definition: TileHWID.h:49
TileHid2RESrcID::m_defaultDrawer
std::vector< uint32_t > m_defaultDrawer
Definition: TileHid2RESrcID.h:101
TileHid2RESrcID::getRodID
uint32_t getRodID(int frag_id) const
make a ROD SrcID for a fragment ID
Definition: TileHid2RESrcID.cxx:464
TileHid2RESrcID::getRobID_8
uint32_t getRobID_8(uint32_t rod_id) const
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
TileHid2RESrcID::m_bs2offline
BS2OFFLINEMAP m_bs2offline
Definition: TileHid2RESrcID.h:98
TileHid2RESrcID::initializeMuRcv
void initializeMuRcv(uint32_t runnum)
Definition: TileHid2RESrcID.cxx:130
TileHid2RESrcID::FRAGFULLMAP
std::map< int, std::vector< uint32_t > > FRAGFULLMAP
Definition: TileHid2RESrcID.h:96
TileHid2RESrcID::m_tileHWID
const TileHWID * m_tileHWID
Definition: TileHid2RESrcID.h:93
TileHid2RESrcID::getRosID_8
uint32_t getRosID_8(uint32_t rob_id) const
TileHid2RESrcID::m_TileMuRcvFrag2ROD
FRAGRODMAP m_TileMuRcvFrag2ROD
Definition: TileHid2RESrcID.h:97
TileHid2RESrcID::getBSfragID
uint32_t getBSfragID(int frag_id) const
Definition: TileHid2RESrcID.cxx:480
TileHid2RESrcID::m_frag2ROD
FRAGFULLMAP m_frag2ROD
Definition: TileHid2RESrcID.h:99
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
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
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TileHid2RESrcID::TileHid2RESrcID
TileHid2RESrcID(const TileHWID *tileHWID=0, uint32_t runnum=0)
constrcutor
Definition: TileHid2RESrcID.cxx:21
TileHid2RESrcID::getDrawerInfo
const std::vector< uint32_t > & getDrawerInfo(int frag_id) const
Definition: TileHid2RESrcID.cxx:510
TileHid2RESrcID::getDrawerType
uint32_t getDrawerType(int frag_id) const
Definition: TileHid2RESrcID.cxx:496
TileHid2RESrcID::getRosID
uint32_t getRosID(uint32_t rob_id) const
Make a ROS Source ID from a ROB source ID.
Definition: TileHid2RESrcID.cxx:558
CLASS_DEF.h
macros to associate a CLID to a type
TileHid2RESrcID::m_runnum
uint32_t m_runnum
Definition: TileHid2RESrcID.h:100