ATLAS Offline Software
Loading...
Searching...
No Matches
TRT_FillCablingData_SR1.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_SR1 class - class used for filling
7// of TRT Mapping in case of SR1 Cosmics
8// P.T. Keener
9//
10#ifndef TRT_FILLCABLINGDATA_SR1_H
11#define TRT_FILLCABLINGDATA_SR1_H
12
13
14/*
15 * Base class
16 */
18
19
20#include "Identifier/Identifier.h"
23
24#include "TRT_CablingData.h"
26
27#include "eformat/SourceIdentifier.h" // change to new eformat v3
28
30
31#include <map>
32#include <vector>
33#include <stdint.h>
34
35
36
38
39public:
40
41 // Constructor
42 TRT_FillCablingData_SR1(const std::string& type, const std::string& name,
43 const IInterface* parent);
44
45 // Destructor
47
48 //AlgTool InterfaceID
49 static const InterfaceID& interfaceID();
50
51 virtual StatusCode initialize();
52
53 virtual StatusCode finalize();
54
55 // Fill the data
57
58 //Define map of collection IDs for all ROBs
59 void defineCollID();
60
61 // Get ROBIDs for each Detector Element (Straw Layer)
62 std::vector<uint32_t> getRobID(Identifier id) const;
63
64 void fillCollID(uint32_t rob_id, std::vector<IdentifierHash> & ids);
65
66private:
67
70
72
73 // Define parameters
74 void defineParameters();
75
76 // Fill Tables with IDs for all straws
77 void defineTables();
78
83 // int m_numberOfStrawsInBarrelROD;
84 // int m_shiftForRightBarrelStraws;
86
87
88 // Source ID for all robs
89 // std::vector<uint32_t> m_allRobs;
90
91 // Vector for the mapping from phi to ROB Source ID
92 std::map<int, std::vector<uint32_t> > m_phi_to_source;
93
94 // Identifiers for all straws;
95 // Make 2D because IDs are different depending on which ROD we are
96 std::vector< std::vector<Identifier> > m_identfierForAllStraws;
97 // std::vector<Identifier> m_identfierForAllStraws;
98
99 // Hashed Identifiers for all straws;
100 std::vector< std::vector<IdentifierHash> > m_identfierHashForAllStraws;
101
102 // Identifiers for all Collections for RODs
103 std::vector<std::vector<IdentifierHash> *> m_collID;
104
105 // Private version of number of straws in each layer
106 std::vector< int > m_numberOfStrawsInLayers;
107
108 // buffer offset to straw maps per ROD connector
109 std::map< int, int > m_1BS_1BL_map;
110 std::map< int, int > m_2BS_2BL1_map;
111 std::map< int, int > m_2BL2_3BL1_map;
112 std::map< int, int > m_3BL2_map;
113 std::map< int, int > m_3BS_map;
114
115 std::map< int, int > m_1FS_1FL_map;
116 std::map< int, int > m_2FS_2FL1_map;
117 std::map< int, int > m_2FL2_3FL1_map;
118 std::map< int, int > m_3FL2_map;
119 std::map< int, int > m_3FS_map;
120
121 std::map< int, int > m_ec_1l_map;
122 std::map< int, int > m_ec_2l_map;
123 std::map< int, int > m_ec_3l_map;
124
125 std::map< int, int > m_ec_1r_map;
126 std::map< int, int > m_ec_2r_map;
127 std::map< int, int > m_ec_3r_map;
128
129 // int m_NumberOfMapFiles;
130
131
133
134};
135
136#endif //TRT_FILLCABLINGDATA_SR1_H
std::map< int, std::vector< GlobalCableMap_t * > > GlobalCableMap
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
TRT_FillCablingData_SR1(const std::string &type, const std::string &name, const IInterface *parent)
std::map< int, int > m_2BL2_3BL1_map
std::map< int, int > m_1FS_1FL_map
std::vector< std::vector< IdentifierHash > * > m_collID
std::vector< std::vector< IdentifierHash > > m_identfierHashForAllStraws
std::vector< int > m_numberOfStrawsInLayers
std::map< int, int > m_1BS_1BL_map
void fillCollID(uint32_t rob_id, std::vector< IdentifierHash > &ids)
std::map< int, int > m_2FL2_3FL1_map
std::map< int, int > m_2BS_2BL1_map
std::vector< uint32_t > getRobID(Identifier id) const
static const InterfaceID & interfaceID()
std::map< int, int > m_2FS_2FL1_map
std::map< int, std::vector< uint32_t > > m_phi_to_source
std::vector< std::vector< Identifier > > m_identfierForAllStraws
This is an Identifier helper class for the TRT subdetector.
Definition TRT_ID.h:82