ATLAS Offline Software
TRT_CablingSvc.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 // TRT_Cabling class - interface class for TRT Mapping
7 //
8 
9 #ifndef TRT_CABLINGSVC_H
10 #define TRT_CABLINGSVC_H
11 
13 
14 #include "Identifier/Identifier.h"
16 #include "Identifier/IdContext.h"
17 
18 #include "TRT_CablingData.h"
25 
27 #include "InDetIdentifier/TRT_ID.h"
28 
30 
31 #include "eformat/SourceIdentifier.h"
32 
33 #include <stdint.h>
34 
35 
36 class TRT_CablingSvc : public extends<AthService, ITRT_CablingSvc>
37 {
38 
39 public:
40 
41  // Constructor
42  TRT_CablingSvc( const std::string& name, ISvcLocator *pSvcLocator ) ;
43 
44  // Destructor
45  virtual ~TRT_CablingSvc();
46 
47  virtual StatusCode initialize();
48 
49  // Get Identifier for each straw from BS
50 // Identifier getIdentifier(const EventFormat::SubDetector& subdetector,
51  Identifier getIdentifier(const eformat::SubDetector& subdetector,
52  const unsigned& rod, const int& bufferOffset, IdentifierHash& hashId) const;
53 
54  // Get buffer offset from staw Identifier
55  uint32_t getBufferOffset( const Identifier &StrawId );
56 
57  // Get ROBIDs for each Detector Element (Straw Layer)
58  std::vector<uint32_t> getRobID(Identifier& id) const;
59 
60  // Get all RODIDs for TRT
61  const std::vector<uint32_t>& getAllRods() const;
62 
63 
64 private:
65 
70 
78 
79  // Parameters for DC1
86  // int m_numberOfEndCapPhiSectors;
87  // int m_numberOfIdentifierSectors;
88 };
89 
90 #endif // TRT_CABLINGSVC_H
TRT_FillCablingData_TB04
Definition: TRT_FillCablingData_TB04.h:34
TRT_CablingSvc::m_cablingTool_SR1
TRT_FillCablingData_SR1 * m_cablingTool_SR1
Definition: TRT_CablingSvc.h:72
TRT_FillCablingData_SR1
Definition: TRT_FillCablingData_SR1.h:38
TRT_CablingSvc::m_numberOfStrawsInROD
int m_numberOfStrawsInROD
Definition: TRT_CablingSvc.h:80
TRT_DetectorManager.h
TRT_CablingSvc::m_shiftForLeftBarrelStraws
int m_shiftForLeftBarrelStraws
Definition: TRT_CablingSvc.h:83
TRT_CablingSvc::~TRT_CablingSvc
virtual ~TRT_CablingSvc()
Definition: TRT_CablingSvc.cxx:47
TRT_CablingData.h
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TRT_CablingSvc
Definition: TRT_CablingSvc.h:37
TRT_CablingSvc::m_cablingTool_SR1_ECC
TRT_FillCablingData_SR1_ECC * m_cablingTool_SR1_ECC
Definition: TRT_CablingSvc.h:71
TRT_CablingSvc::m_manager
const InDetDD::TRT_DetectorManager * m_manager
Definition: TRT_CablingSvc.h:66
TRT_CablingSvc::getAllRods
const std::vector< uint32_t > & getAllRods() const
Definition: TRT_CablingSvc.cxx:271
TRT_FillCablingData_DC1.h
TRT_ID.h
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
TRT_CablingSvc::m_cablingTool_DC3
TRT_FillCablingData_DC3 * m_cablingTool_DC3
Definition: TRT_CablingSvc.h:76
TRT_CablingSvc::getRobID
std::vector< uint32_t > getRobID(Identifier &id) const
Definition: TRT_CablingSvc.cxx:156
TRT_FillCablingData_DC3.h
TRT_FillCablingData_DC2.h
TRT_CablingSvc::m_cablingTool_DC2
TRT_FillCablingData_DC2 * m_cablingTool_DC2
Definition: TRT_CablingSvc.h:75
TRT_CablingSvc::TRT_CablingSvc
TRT_CablingSvc(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TRT_CablingSvc.cxx:23
TRT_FillCablingData_DC2
Definition: TRT_FillCablingData_DC2.h:31
TRT_CablingSvc::getIdentifier
Identifier getIdentifier(const eformat::SubDetector &subdetector, const unsigned &rod, const int &bufferOffset, IdentifierHash &hashId) const
Definition: TRT_CablingSvc.cxx:199
IdContext.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TRT_CablingSvc::m_shiftForRightEndCapStraws
int m_shiftForRightEndCapStraws
Definition: TRT_CablingSvc.h:85
RunTileMonitoring.rod
rod
Definition: RunTileMonitoring.py:134
TRT_CablingSvc::m_cablingTool_TB
TRT_FillCablingData_TB04 * m_cablingTool_TB
Definition: TRT_CablingSvc.h:73
ITRT_CablingSvc.h
TRT_FillCablingData_DC1
Definition: TRT_FillCablingData_DC1.h:32
TRT_FillCablingData_DC3
Definition: TRT_FillCablingData_DC3.h:33
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
IdentifierHash.h
TRT_CablingSvc::getBufferOffset
uint32_t getBufferOffset(const Identifier &StrawId)
Definition: TRT_CablingSvc.cxx:253
TRT_CablingSvc::m_cabling
TRT_CablingData * m_cabling
Definition: TRT_CablingSvc.h:69
TRT_FillCablingData_SR1.h
TRT_ID
Definition: TRT_ID.h:84
InDetDD::TRT_DetectorManager
The Detector Manager for all TRT Detector elements, it acts as the interface to the detector elements...
Definition: TRT_DetectorManager.h:69
TRT_FillCablingData_SR1_ECC.h
TRT_CablingSvc::m_cntx
IdContext m_cntx
Definition: TRT_CablingSvc.h:68
TRT_CablingData
Definition: TRT_CablingData.h:18
TRT_CablingSvc::m_numberOfStrawsInBarrelROD
int m_numberOfStrawsInBarrelROD
Definition: TRT_CablingSvc.h:81
TRT_FillCablingData_TB04.h
TRT_CablingSvc::m_cablingTool_DC1
TRT_FillCablingData_DC1 * m_cablingTool_DC1
Definition: TRT_CablingSvc.h:74
TRT_CablingSvc::m_TRTLayout
int m_TRTLayout
Definition: TRT_CablingSvc.h:77
AthService.h
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
TRT_CablingSvc::m_shiftForRightBarrelStraws
int m_shiftForRightBarrelStraws
Definition: TRT_CablingSvc.h:84
TRT_FillCablingData_SR1_ECC
Definition: TRT_FillCablingData_SR1_ECC.h:37
TRT_CablingSvc::m_shiftForLeftEndCapStraws
int m_shiftForLeftEndCapStraws
Definition: TRT_CablingSvc.h:82
IdContext
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
Definition: IdContext.h:26
TRT_CablingSvc::initialize
virtual StatusCode initialize()
Definition: TRT_CablingSvc.cxx:53
TRT_CablingSvc::m_idHelper
const TRT_ID * m_idHelper
Definition: TRT_CablingSvc.h:67
Identifier
Definition: IdentifierFieldParser.cxx:14