ATLAS Offline Software
InnerDetector
InDetDetDescr
TRT_Cabling
src
TRT_FillCablingData_SR1.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 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
*/
17
#include "
AthenaBaseComps/AthAlgTool.h
"
18
19
20
#include "Identifier/Identifier.h"
21
#include "
Identifier/IdentifierHash.h
"
22
#include "
Identifier/IdContext.h
"
23
24
#include "
TRT_CablingData.h
"
25
#include "
TRT_ReadoutGeometry/TRT_DetectorManager.h
"
26
#include "
InDetIdentifier/TRT_ID.h
"
27
28
#include "eformat/SourceIdentifier.h"
// change to new eformat v3
29
30
#include "
TRT_FillCablingData_Types.h
"
31
32
#include <map>
33
#include <vector>
34
#include <stdint.h>
35
36
37
38
class
TRT_FillCablingData_SR1
:
public
AthAlgTool
{
39
40
public
:
41
42
// Constructor
43
TRT_FillCablingData_SR1
(
const
std::string&
type
,
const
std::string&
name
,
44
const
IInterface*
parent
);
45
46
// Destructor
47
virtual
~TRT_FillCablingData_SR1
();
48
49
//AlgTool InterfaceID
50
static
const
InterfaceID&
interfaceID
();
51
52
virtual
StatusCode
initialize
();
53
54
virtual
StatusCode
finalize
();
55
56
// Fill the data
57
TRT_CablingData
*
fillData
();
58
59
//Define map of collection IDs for all ROBs
60
void
defineCollID
();
61
62
// Get ROBIDs for each Detector Element (Straw Layer)
63
std::vector<uint32_t>
getRobID
(
Identifier
id
)
const
;
64
65
void
fillCollID
(
uint32_t
rob_id, std::vector<IdentifierHash> &
ids
);
66
67
private
:
68
69
const
TRT_ID
*
m_TRTHelper
;
70
IdContext
m_cntx
;
71
72
TRT_CablingData
*
m_cabling
=
nullptr
;
73
74
// Define parameters
75
void
defineParameters
();
76
77
// Fill Tables with IDs for all straws
78
void
defineTables
();
79
80
int
m_numberOfRings
= 0;
81
int
m_numberOfLayersA
= 0;
82
int
m_numberOfLayersB
= 0;
83
int
m_numberOfLayersC
= 0;
84
// int m_numberOfStrawsInBarrelROD;
85
// int m_shiftForRightBarrelStraws;
86
int
m_numberOfIdentifierSectors
= 0;
87
88
89
// Source ID for all robs
90
// std::vector<uint32_t> m_allRobs;
91
92
// Vector for the mapping from phi to ROB Source ID
93
std::map<int, std::vector<uint32_t> >
m_phi_to_source
;
94
95
// Identifiers for all straws;
96
// Make 2D because IDs are different depending on which ROD we are
97
std::vector< std::vector<Identifier> >
m_identfierForAllStraws
;
98
// std::vector<Identifier> m_identfierForAllStraws;
99
100
// Hashed Identifiers for all straws;
101
std::vector< std::vector<IdentifierHash> >
m_identfierHashForAllStraws
;
102
103
// Identifiers for all Collections for RODs
104
std::vector<std::vector<IdentifierHash> *>
m_collID
;
105
106
// Private version of number of straws in each layer
107
std::vector< int >
m_numberOfStrawsInLayers
;
108
109
// buffer offset to straw maps per ROD connector
110
std::map< int, int >
m_1BS_1BL_map
;
111
std::map< int, int >
m_2BS_2BL1_map
;
112
std::map< int, int >
m_2BL2_3BL1_map
;
113
std::map< int, int >
m_3BL2_map
;
114
std::map< int, int >
m_3BS_map
;
115
116
std::map< int, int >
m_1FS_1FL_map
;
117
std::map< int, int >
m_2FS_2FL1_map
;
118
std::map< int, int >
m_2FL2_3FL1_map
;
119
std::map< int, int >
m_3FL2_map
;
120
std::map< int, int >
m_3FS_map
;
121
122
std::map< int, int >
m_ec_1l_map
;
123
std::map< int, int >
m_ec_2l_map
;
124
std::map< int, int >
m_ec_3l_map
;
125
126
std::map< int, int >
m_ec_1r_map
;
127
std::map< int, int >
m_ec_2r_map
;
128
std::map< int, int >
m_ec_3r_map
;
129
130
// int m_NumberOfMapFiles;
131
132
133
GlobalCableMap
m_CableMap
;
134
135
};
136
137
#endif //TRT_FILLCABLINGDATA_SR1_H
TRT_FillCablingData_SR1::m_identfierHashForAllStraws
std::vector< std::vector< IdentifierHash > > m_identfierHashForAllStraws
Definition:
TRT_FillCablingData_SR1.h:101
TRT_FillCablingData_SR1
Definition:
TRT_FillCablingData_SR1.h:38
TRT_FillCablingData_SR1::m_2BS_2BL1_map
std::map< int, int > m_2BS_2BL1_map
Definition:
TRT_FillCablingData_SR1.h:111
TRT_FillCablingData_SR1::m_cabling
TRT_CablingData * m_cabling
Definition:
TRT_FillCablingData_SR1.h:72
TRT_DetectorManager.h
TRT_FillCablingData_SR1::m_3FS_map
std::map< int, int > m_3FS_map
Definition:
TRT_FillCablingData_SR1.h:120
TRT_CablingData.h
xAOD::uint32_t
setEventNumber uint32_t
Definition:
EventInfo_v1.cxx:127
TRT_FillCablingData_SR1::m_ec_3r_map
std::map< int, int > m_ec_3r_map
Definition:
TRT_FillCablingData_SR1.h:128
TRT_FillCablingData_SR1::m_numberOfLayersB
int m_numberOfLayersB
Definition:
TRT_FillCablingData_SR1.h:82
TRT_FillCablingData_SR1::m_identfierForAllStraws
std::vector< std::vector< Identifier > > m_identfierForAllStraws
Definition:
TRT_FillCablingData_SR1.h:97
TRT_ID.h
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
TRT_FillCablingData_SR1::TRT_FillCablingData_SR1
TRT_FillCablingData_SR1(const std::string &type, const std::string &name, const IInterface *parent)
Definition:
TRT_FillCablingData_SR1.cxx:42
TRT_FillCablingData_SR1::getRobID
std::vector< uint32_t > getRobID(Identifier id) const
Definition:
TRT_FillCablingData_SR1.cxx:987
TRT_FillCablingData_SR1::m_numberOfRings
int m_numberOfRings
Definition:
TRT_FillCablingData_SR1.h:80
TRT_FillCablingData_SR1::m_numberOfStrawsInLayers
std::vector< int > m_numberOfStrawsInLayers
Definition:
TRT_FillCablingData_SR1.h:107
TRT_FillCablingData_SR1::fillData
TRT_CablingData * fillData()
Definition:
TRT_FillCablingData_SR1.cxx:96
IdContext.h
TRT_FillCablingData_SR1::m_1FS_1FL_map
std::map< int, int > m_1FS_1FL_map
Definition:
TRT_FillCablingData_SR1.h:116
TRT_FillCablingData_SR1::m_ec_1l_map
std::map< int, int > m_ec_1l_map
Definition:
TRT_FillCablingData_SR1.h:122
TRT_FillCablingData_SR1::initialize
virtual StatusCode initialize()
Definition:
TRT_FillCablingData_SR1.cxx:60
TRT_FillCablingData_SR1::m_numberOfLayersA
int m_numberOfLayersA
Definition:
TRT_FillCablingData_SR1.h:81
TRT_FillCablingData_SR1::m_3BL2_map
std::map< int, int > m_3BL2_map
Definition:
TRT_FillCablingData_SR1.h:113
TRT_FillCablingData_SR1::m_numberOfIdentifierSectors
int m_numberOfIdentifierSectors
Definition:
TRT_FillCablingData_SR1.h:86
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TRT_FillCablingData_SR1::m_ec_1r_map
std::map< int, int > m_ec_1r_map
Definition:
TRT_FillCablingData_SR1.h:126
TRT_FillCablingData_SR1::m_2BL2_3BL1_map
std::map< int, int > m_2BL2_3BL1_map
Definition:
TRT_FillCablingData_SR1.h:112
TRT_FillCablingData_SR1::m_2FS_2FL1_map
std::map< int, int > m_2FS_2FL1_map
Definition:
TRT_FillCablingData_SR1.h:117
AthAlgTool.h
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
TRT_FillCablingData_SR1::m_3BS_map
std::map< int, int > m_3BS_map
Definition:
TRT_FillCablingData_SR1.h:114
TRT_FillCablingData_SR1::m_CableMap
GlobalCableMap m_CableMap
Definition:
TRT_FillCablingData_SR1.h:133
TRT_FillCablingData_SR1::m_3FL2_map
std::map< int, int > m_3FL2_map
Definition:
TRT_FillCablingData_SR1.h:119
TRT_FillCablingData_SR1::m_collID
std::vector< std::vector< IdentifierHash > * > m_collID
Definition:
TRT_FillCablingData_SR1.h:104
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
python.subdetectors.mmg.ids
ids
Definition:
mmg.py:8
IdentifierHash.h
TRT_FillCablingData_Types.h
TRT_FillCablingData_SR1::m_TRTHelper
const TRT_ID * m_TRTHelper
Definition:
TRT_FillCablingData_SR1.h:69
TRT_FillCablingData_SR1::m_phi_to_source
std::map< int, std::vector< uint32_t > > m_phi_to_source
Definition:
TRT_FillCablingData_SR1.h:93
TRT_FillCablingData_SR1::defineTables
void defineTables()
Definition:
TRT_FillCablingData_SR1.cxx:145
TRT_ID
Definition:
TRT_ID.h:84
TRT_FillCablingData_SR1::m_numberOfLayersC
int m_numberOfLayersC
Definition:
TRT_FillCablingData_SR1.h:83
TRT_FillCablingData_SR1::m_ec_2l_map
std::map< int, int > m_ec_2l_map
Definition:
TRT_FillCablingData_SR1.h:123
TRT_CablingData
Definition:
TRT_CablingData.h:18
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
GlobalCableMap
std::map< int, std::vector< GlobalCableMap_t * > > GlobalCableMap
Definition:
TRT_FillCablingData_Types.h:20
TRT_FillCablingData_SR1::interfaceID
static const InterfaceID & interfaceID()
Definition:
TRT_FillCablingData_SR1.cxx:55
TRT_FillCablingData_SR1::m_cntx
IdContext m_cntx
Definition:
TRT_FillCablingData_SR1.h:70
TRT_FillCablingData_SR1::m_1BS_1BL_map
std::map< int, int > m_1BS_1BL_map
Definition:
TRT_FillCablingData_SR1.h:110
TRT_FillCablingData_SR1::fillCollID
void fillCollID(uint32_t rob_id, std::vector< IdentifierHash > &ids)
Definition:
TRT_FillCablingData_SR1.cxx:789
AthAlgTool
Definition:
AthAlgTool.h:26
TRT_FillCablingData_SR1::defineParameters
void defineParameters()
Definition:
TRT_FillCablingData_SR1.cxx:102
TRT_FillCablingData_SR1::~TRT_FillCablingData_SR1
virtual ~TRT_FillCablingData_SR1()
Definition:
TRT_FillCablingData_SR1.cxx:51
TRT_FillCablingData_SR1::m_ec_3l_map
std::map< int, int > m_ec_3l_map
Definition:
TRT_FillCablingData_SR1.h:124
IdContext
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
Definition:
IdContext.h:26
TRT_FillCablingData_SR1::m_2FL2_3FL1_map
std::map< int, int > m_2FL2_3FL1_map
Definition:
TRT_FillCablingData_SR1.h:118
TRT_FillCablingData_SR1::defineCollID
void defineCollID()
Definition:
TRT_FillCablingData_SR1.cxx:766
TRT_FillCablingData_SR1::finalize
virtual StatusCode finalize()
Definition:
TRT_FillCablingData_SR1.cxx:87
TRT_FillCablingData_SR1::m_ec_2r_map
std::map< int, int > m_ec_2r_map
Definition:
TRT_FillCablingData_SR1.h:127
Identifier
Definition:
IdentifierFieldParser.cxx:14
Generated on Thu Nov 7 2024 21:30:35 for ATLAS Offline Software by
1.8.18