ATLAS Offline Software
Loading...
Searching...
No Matches
TRT_FillCablingData_TB04.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5//
6// TRT_FillCablingData_TB04 class - class used for filling
7// of TRT Mapping in case of TB 2004
8//
9#ifndef TRT_FILLCABLINGDATA_TB04_H
10#define TRT_FILLCABLINGDATA_TB04_H
11
12
13/*
14 * Base class
15 */
17
18
19#include "Identifier/Identifier.h"
22
23#include "TRT_CablingData.h"
25
26#include "eformat/SourceIdentifier.h" // change to new eformat v3
27
28
29#include <vector>
30#include <stdint.h>
31
32
34
35public:
36
37 // Constructor
38 TRT_FillCablingData_TB04(const std::string& type, const std::string& name,
39 const IInterface* parent);
40
41 // Destructor
43
44 //AlgTool InterfaceID
45 static const InterfaceID& interfaceID();
46
47 virtual StatusCode initialize();
48
49 virtual StatusCode finalize();
50
51 // Fill the data
53
54 //Define map of collection IDs for all ROBs
55 void defineCollID();
56
57 // Get ROBIDs for each Detector Element (Straw Layer)
58 std::vector<uint32_t> getRobID(Identifier id) const;
59
60 void fillCollID(uint32_t rob_id, std::vector<IdentifierHash> & ids);
61
62private:
63
65
67
69
70 // Define parameters
71 void defineParameters();
72
73 // Fill Tables with IDs for all straws
74 void defineTables();
75
80 // int m_numberOfStrawsInBarrelROD;
81 // int m_shiftForRightBarrelStraws;
83
84 // Source ID for all robs
85 // std::vector<uint32_t> m_allRobs;
86
87 // Vector for the mapping from phi to ROB Source ID
88 std::vector<uint32_t> m_phi_to_source;
89
90 // Identifiers for all straws;
91 // Make 2D because IDs are different depending on which ROD we are
92 std::vector< std::vector<Identifier> > m_identfierForAllStraws;
93 // std::vector<Identifier> m_identfierForAllStraws;
94
95 // Hashed Identifiers for all straws;
96 std::vector< std::vector<IdentifierHash> > m_identfierHashForAllStraws;
97
98 // Identifiers for all Collections for RODs
99 std::vector<std::vector<IdentifierHash> *> m_collID;
100
101 // Private version of number of straws in each layer
102 std::vector< std::vector<int> > m_ncol;
103
105
106};
107
108#endif //TRT_FILLCABLINGDATA_TB04_H
This is an Identifier helper class for the TRT subdetector.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
Definition IdContext.h:26
static const InterfaceID & interfaceID()
std::vector< std::vector< IdentifierHash > * > m_collID
std::vector< std::vector< IdentifierHash > > m_identfierHashForAllStraws
std::vector< std::vector< int > > m_ncol
TRT_FillCablingData_TB04(const std::string &type, const std::string &name, const IInterface *parent)
std::vector< std::vector< Identifier > > m_identfierForAllStraws
void fillCollID(uint32_t rob_id, std::vector< IdentifierHash > &ids)
std::vector< uint32_t > getRobID(Identifier id) const
std::vector< uint32_t > m_phi_to_source
This is an Identifier helper class for the TRT subdetector.
Definition TRT_ID.h:82