ATLAS Offline Software
TRT_FillCablingData_DC1.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //
6 // TRT_FillCablingData_DC1 class - class used for filling
7 // of TRT Mapping in case of DC1
8 // A.Zalite
9 //
10 
11 #ifndef TRT_FILLCABLINGDATA_DC1_H
12 #define TRT_FILLCABLINGDATA_DC1_H
13 
14 /*
15  * Base class
16  */
18 
19 #include "Identifier/Identifier.h"
21 #include "Identifier/IdContext.h"
22 #include "InDetIdentifier/TRT_ID.h"
23 #include "TRT_CablingData.h"
25 
26 #include "eformat/SourceIdentifier.h" // change to new eformat v3
27 #include <cstdint>
28 #include <vector>
29 
30 
32 {
33 public:
34  // Constructor
35  TRT_FillCablingData_DC1(const std::string& type, const std::string& name,
36  const IInterface* parent);
37 
38  // Destructor
39  virtual ~TRT_FillCablingData_DC1();
40 
41  // AlgTool InterfaceID
42  static const InterfaceID& interfaceID();
43 
44  virtual StatusCode initialize();
45 
46  virtual StatusCode finalize();
47 
48  // Fill the data
50 
51  // Get ROBIDs for each Detector Element (straw layer)
52  std::vector<uint32_t> getRobID(Identifier& id) const;
53 
54  // Get ROD for each straw
55  uint32_t getRodID(Identifier& id) const;
56 
57  // Get Straw and ROD ID
58  void getStrawRodID(Identifier& id, uint32_t& rod_id, uint32_t& straw_number)
59  const;
60 
61  // Define Identifier for each straw from BS
62  //Identifier defineIdentifier(const EventFormat::SubDetector& subdetector,
63  // const int& rod, const int& straw) const;
64  Identifier defineIdentifier(const eformat::SubDetector& subdetector,
65  const int& rod, const int& straw) const;
66 
67  // Get Identifiers of Collections for the given ROBID
68  void fillCollID(uint32_t robid, std::vector<IdentifierHash> & ids);
69 
70  // Get parameters
71  void get_parameters(int& numberOfStrawsInROD,
72  int& numberOfStrawsInBarrelROD,
73  int& shiftForLeftEndCapStraws,
74  int& shiftForLeftBarrelStraws,
75  int& shiftForRightBarrelStraws,
76  int& shiftForRightEndCapStraws,
77  int& numberOfEndCapPhiSectors,
78  int& numberOfIdentifierSectors);
79 
80 private:
81 
82  void defineParameters();
83  void printParameters() const;
84  void defineTables();
85 
86  // Define Identifiers of Collections for the given ROBID
87  void defineCollID();
88 
97 
104 
112 
115 
118 
121 
126 
131 
134 
135  int* m_layerID{};
138 
139  const TRT_ID* m_id_trt{};
141 
143 };
144 
145 #endif // TRT_FILLCABLINGDATA_DC1_H
146 
TRT_FillCablingData_DC1::fillData
TRT_CablingData * fillData()
Definition: TRT_FillCablingData_DC1.cxx:82
TRT_FillCablingData_DC1::initialize
virtual StatusCode initialize()
Definition: TRT_FillCablingData_DC1.cxx:41
TRT::Hit::straw
@ straw
Definition: HitInfo.h:82
TRT_FillCablingData_DC1::fillCollID
void fillCollID(uint32_t robid, std::vector< IdentifierHash > &ids)
Definition: TRT_FillCablingData_DC1.cxx:507
TRT_FillCablingData_DC1::defineParameters
void defineParameters()
Definition: TRT_FillCablingData_DC1.cxx:88
TRT_FillCablingData_DC1::defineTables
void defineTables()
Definition: TRT_FillCablingData_DC1.cxx:317
TRT_FillCablingData_DC1::interfaceID
static const InterfaceID & interfaceID()
Definition: TRT_FillCablingData_DC1.cxx:34
TRT_DetectorManager.h
TRT_FillCablingData_DC1::m_numberOfStrawsInWheelBForRod
int m_numberOfStrawsInWheelBForRod
Definition: TRT_FillCablingData_DC1.h:95
TRT_CablingData.h
TRT_FillCablingData_DC1::m_numberOfStrawPlanesB
int m_numberOfStrawPlanesB
Definition: TRT_FillCablingData_DC1.h:133
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TRT_FillCablingData_DC1::m_numberOfLayersC
int m_numberOfLayersC
Definition: TRT_FillCablingData_DC1.h:110
TRT_FillCablingData_DC1::m_numberOfStrawsABInRod
int m_numberOfStrawsABInRod
Definition: TRT_FillCablingData_DC1.h:93
TRT_FillCablingData_DC1::m_numberOfLayersAB
int m_numberOfLayersAB
Definition: TRT_FillCablingData_DC1.h:111
TRT_ID.h
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
TRT_FillCablingData_DC1::m_numberOfRings
int m_numberOfRings
Definition: TRT_FillCablingData_DC1.h:105
TRT_FillCablingData_DC1::m_id_trt
const TRT_ID * m_id_trt
Definition: TRT_FillCablingData_DC1.h:139
TRT_FillCablingData_DC1::finalize
virtual StatusCode finalize()
Definition: TRT_FillCablingData_DC1.cxx:67
TRT_FillCablingData_DC1::m_numberOfStrawsInROD
int m_numberOfStrawsInROD
Definition: TRT_FillCablingData_DC1.h:116
TRT_FillCablingData_DC1::m_numberOfPlanesAB
int m_numberOfPlanesAB
Definition: TRT_FillCablingData_DC1.h:98
TRT_FillCablingData_DC1::m_numberOfWheelsAB
int m_numberOfWheelsAB
Definition: TRT_FillCablingData_DC1.h:90
TRT_FillCablingData_DC1::m_shiftForRightBarrel
int m_shiftForRightBarrel
Definition: TRT_FillCablingData_DC1.h:124
TRT_FillCablingData_DC1::m_totalNumberOfPlanes
int m_totalNumberOfPlanes
Definition: TRT_FillCablingData_DC1.h:99
TRT_FillCablingData_DC1::m_numberOfStrawsInBarrelROD
int m_numberOfStrawsInBarrelROD
Definition: TRT_FillCablingData_DC1.h:117
TRT_FillCablingData_DC1::m_shiftForRightEndCap
int m_shiftForRightEndCap
Definition: TRT_FillCablingData_DC1.h:125
TRT_FillCablingData_DC1::m_numberOfLayersInPhiSector
int m_numberOfLayersInPhiSector
Definition: TRT_FillCablingData_DC1.h:113
TRT_FillCablingData_DC1::getRodID
uint32_t getRodID(Identifier &id) const
Definition: TRT_FillCablingData_DC1.cxx:841
TRT_FillCablingData_DC1::m_numberOfPhiSectorsInIDSector
int m_numberOfPhiSectorsInIDSector
Definition: TRT_FillCablingData_DC1.h:100
TRT_FillCablingData_DC1::m_numberOfLayersB
int m_numberOfLayersB
Definition: TRT_FillCablingData_DC1.h:109
TRT_FillCablingData_DC1::m_numberOfWheelsABC
int m_numberOfWheelsABC
Definition: TRT_FillCablingData_DC1.h:91
TRT_FillCablingData_DC1::m_numberOfStrawsInPreviousLayers
int * m_numberOfStrawsInPreviousLayers
Definition: TRT_FillCablingData_DC1.h:137
IdContext.h
TRT_FillCablingData_DC1::getStrawRodID
void getStrawRodID(Identifier &id, uint32_t &rod_id, uint32_t &straw_number) const
Definition: TRT_FillCablingData_DC1.cxx:902
TRT_FillCablingData_DC1::m_numberOfStrawsInWheelCForRod
int m_numberOfStrawsInWheelCForRod
Definition: TRT_FillCablingData_DC1.h:96
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TRT_FillCablingData_DC1::m_numberOfStrawsInPhiSectorAB
int m_numberOfStrawsInPhiSectorAB
Definition: TRT_FillCablingData_DC1.h:101
RunTileMonitoring.rod
rod
Definition: RunTileMonitoring.py:134
TRT_FillCablingData_DC1::m_numberOfWheelsA
int m_numberOfWheelsA
Definition: TRT_FillCablingData_DC1.h:89
TRT_FillCablingData_DC1::printParameters
void printParameters() const
Definition: TRT_FillCablingData_DC1.cxx:247
TRT_FillCablingData_DC1::m_numberOfEndCapPhiSectors
int m_numberOfEndCapPhiSectors
Definition: TRT_FillCablingData_DC1.h:120
TRT_FillCablingData_DC1::m_shiftForLeftEndCap
int m_shiftForLeftEndCap
Definition: TRT_FillCablingData_DC1.h:122
TRT_FillCablingData_DC1::m_numberOfStrawsAInRod
int m_numberOfStrawsAInRod
Definition: TRT_FillCablingData_DC1.h:92
TRT_FillCablingData_DC1
Definition: TRT_FillCablingData_DC1.h:32
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
python.subdetectors.mmg.ids
ids
Definition: mmg.py:8
TRT_FillCablingData_DC1::m_shiftForRightBarrelStraws
int m_shiftForRightBarrelStraws
Definition: TRT_FillCablingData_DC1.h:129
IdentifierHash.h
TRT_FillCablingData_DC1::m_shiftForLeftEndCapStraws
int m_shiftForLeftEndCapStraws
Definition: TRT_FillCablingData_DC1.h:127
TRT_FillCablingData_DC1::m_layerID
int * m_layerID
Definition: TRT_FillCablingData_DC1.h:135
TRT_FillCablingData_DC1::m_totalNumberOfStrawsInPhiSectorsAB
int m_totalNumberOfStrawsInPhiSectorsAB
Definition: TRT_FillCablingData_DC1.h:103
TRT_FillCablingData_DC1::m_numberOfIdentifierSectors
int m_numberOfIdentifierSectors
Definition: TRT_FillCablingData_DC1.h:119
TRT_FillCablingData_DC1::m_shiftForRightEndCapStraws
int m_shiftForRightEndCapStraws
Definition: TRT_FillCablingData_DC1.h:130
TRT_ID
Definition: TRT_ID.h:84
TRT_FillCablingData_DC1::m_numberOfStrawsAB
int m_numberOfStrawsAB
Definition: TRT_FillCablingData_DC1.h:107
TRT_CablingData
Definition: TRT_CablingData.h:18
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TRT_FillCablingData_DC1::m_strawIDInLayer
int * m_strawIDInLayer
Definition: TRT_FillCablingData_DC1.h:136
TRT_FillCablingData_DC1::get_parameters
void get_parameters(int &numberOfStrawsInROD, int &numberOfStrawsInBarrelROD, int &shiftForLeftEndCapStraws, int &shiftForLeftBarrelStraws, int &shiftForRightBarrelStraws, int &shiftForRightEndCapStraws, int &numberOfEndCapPhiSectors, int &numberOfIdentifierSectors)
Definition: TRT_FillCablingData_DC1.cxx:991
TRT_FillCablingData_DC1::~TRT_FillCablingData_DC1
virtual ~TRT_FillCablingData_DC1()
Definition: TRT_FillCablingData_DC1.cxx:30
TRT_FillCablingData_DC1::m_numberOfStrawsInPhiSector
int m_numberOfStrawsInPhiSector
Definition: TRT_FillCablingData_DC1.h:114
TRT_FillCablingData_DC1::m_numberOfStrawsInWheelAForRod
int m_numberOfStrawsInWheelAForRod
Definition: TRT_FillCablingData_DC1.h:94
TRT_FillCablingData_DC1::defineCollID
void defineCollID()
Definition: TRT_FillCablingData_DC1.cxx:447
TRT_FillCablingData_DC1::m_shiftForLeftBarrelStraws
int m_shiftForLeftBarrelStraws
Definition: TRT_FillCablingData_DC1.h:128
AthAlgTool
Definition: AthAlgTool.h:26
TRT_FillCablingData_DC1::m_cabling
TRT_CablingData * m_cabling
Definition: TRT_FillCablingData_DC1.h:142
TRT_FillCablingData_DC1::m_numberOfStrawsA
int m_numberOfStrawsA
Definition: TRT_FillCablingData_DC1.h:106
TRT_FillCablingData_DC1::defineIdentifier
Identifier defineIdentifier(const eformat::SubDetector &subdetector, const int &rod, const int &straw) const
Definition: TRT_FillCablingData_DC1.cxx:702
TRT_FillCablingData_DC1::m_numberOfStrawPlanesAC
int m_numberOfStrawPlanesAC
Definition: TRT_FillCablingData_DC1.h:132
TRT_FillCablingData_DC1::m_numberOfLayersA
int m_numberOfLayersA
Definition: TRT_FillCablingData_DC1.h:108
IdContext
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
Definition: IdContext.h:26
TRT_FillCablingData_DC1::TRT_FillCablingData_DC1
TRT_FillCablingData_DC1(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TRT_FillCablingData_DC1.cxx:22
TRT_FillCablingData_DC1::m_shiftForLeftBarrel
int m_shiftForLeftBarrel
Definition: TRT_FillCablingData_DC1.h:123
TRT_FillCablingData_DC1::getRobID
std::vector< uint32_t > getRobID(Identifier &id) const
Definition: TRT_FillCablingData_DC1.cxx:786
TRT_FillCablingData_DC1::m_numberOfStrawsInPhiSectorC
int m_numberOfStrawsInPhiSectorC
Definition: TRT_FillCablingData_DC1.h:102
TRT_FillCablingData_DC1::m_cntx
IdContext m_cntx
Definition: TRT_FillCablingData_DC1.h:140
Identifier
Definition: IdentifierFieldParser.cxx:14