ATLAS Offline Software
ITRT_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_CablingSvc class - interface class for TRT Mapping
7 //
8 
9 #ifndef ITRT_CABLINGSVC_H
10 #define ITRT_CABLINGSVC_H
11 
12 #include "GaudiKernel/IInterface.h"
13 
14 #include "eformat/SourceIdentifier.h"
15 
16 #include <vector>
17 
18 
19 class IdentifierHash;
20 class Identifier;
21 
22 
23 class ITRT_CablingSvc: virtual public IInterface
24 {
25 
26 public:
28 
29  virtual ~ITRT_CablingSvc(){}
30 
31  // Get Identifiers of Collections for the given ROBID
32  // virtual const std::vector<IdentifierHash>& getCollID(uint32_t rob_id) = 0 ;
33 
34  // Get Identifier for each straw from BS
35  virtual Identifier getIdentifier(const eformat::SubDetector& subdetector,
36  const unsigned& rod, const int& bufferOffset,
37  IdentifierHash& hashId) const = 0 ;
38 
39  // Get buffer offset from staw Identifier
40  virtual uint32_t getBufferOffset( const Identifier &StrawId ) = 0;
41 
42  // Get ROBIDs for each Detector Element (Straw Layer)
43  virtual std::vector<uint32_t> getRobID(Identifier& id) const = 0;
44 
45  // Get all RODIDs for TRT
46  virtual const std::vector<uint32_t>& getAllRods() const = 0;
47 
48  // Get number of straws in ROD (DC, BS creation)
49  // virtual int getNumStrawInROD(uint32_t rod_id) const = 0;
50 
51  // Get ROD for each straw (DC, BS creation)
52  // virtual uint32_t getRodID(Identifier& id) const = 0;
53 
54  // Get Straw and ROD ID (DC, BS creation)
55  // virtual void getStrawRodID(Identifier& id, uint32_t& rod_id,
56  // uint32_t& straw_number) const = 0;
57 
58  // Set parameters
59  // virtual void set_parameters() = 0;
60 
61 };
62 
63 #endif // ITRT_CABLINGSVC_H
ITRT_CablingSvc::DeclareInterfaceID
DeclareInterfaceID(ITRT_CablingSvc, 1, 0)
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
ITRT_CablingSvc
Definition: ITRT_CablingSvc.h:24
ITRT_CablingSvc::~ITRT_CablingSvc
virtual ~ITRT_CablingSvc()
Definition: ITRT_CablingSvc.h:29
ITRT_CablingSvc::getRobID
virtual std::vector< uint32_t > getRobID(Identifier &id) const =0
RunTileMonitoring.rod
rod
Definition: RunTileMonitoring.py:134
ITRT_CablingSvc::getBufferOffset
virtual uint32_t getBufferOffset(const Identifier &StrawId)=0
ITRT_CablingSvc::getAllRods
virtual const std::vector< uint32_t > & getAllRods() const =0
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
ITRT_CablingSvc::getIdentifier
virtual Identifier getIdentifier(const eformat::SubDetector &subdetector, const unsigned &rod, const int &bufferOffset, IdentifierHash &hashId) const =0
Identifier
Definition: IdentifierFieldParser.cxx:14