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