ATLAS Offline Software
InnerDetector
InDetDetDescr
TRT_Cabling
src
TRT_FillCablingData_TB04.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_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
*/
16
#include "
AthenaBaseComps/AthAlgTool.h
"
17
18
19
#include "Identifier/Identifier.h"
20
#include "
Identifier/IdentifierHash.h
"
21
#include "
Identifier/IdContext.h
"
22
23
#include "
TRT_CablingData.h
"
24
#include "
TRT_ReadoutGeometry/TRT_DetectorManager.h
"
25
#include "
InDetIdentifier/TRT_ID.h
"
26
27
#include "eformat/SourceIdentifier.h"
// change to new eformat v3
28
29
30
#include <vector>
31
#include <stdint.h>
32
33
34
class
TRT_FillCablingData_TB04
:
public
AthAlgTool
{
35
36
public
:
37
38
// Constructor
39
TRT_FillCablingData_TB04
(
const
std::string&
type
,
const
std::string&
name
,
40
const
IInterface*
parent
);
41
42
// Destructor
43
virtual
~TRT_FillCablingData_TB04
();
44
45
//AlgTool InterfaceID
46
static
const
InterfaceID&
interfaceID
();
47
48
virtual
StatusCode
initialize
();
49
50
virtual
StatusCode
finalize
();
51
52
// Fill the data
53
TRT_CablingData
*
fillData
();
54
55
//Define map of collection IDs for all ROBs
56
void
defineCollID
();
57
58
// Get ROBIDs for each Detector Element (Straw Layer)
59
std::vector<uint32_t>
getRobID
(
Identifier
id
)
const
;
60
61
void
fillCollID
(
uint32_t
rob_id, std::vector<IdentifierHash> &
ids
);
62
63
private
:
64
65
const
TRT_ID
*
m_TRTHelper
;
66
67
IdContext
m_cntx
;
68
69
TRT_CablingData
*
m_cabling
=
nullptr
;
70
71
// Define parameters
72
void
defineParameters
();
73
74
// Fill Tables with IDs for all straws
75
void
defineTables
();
76
77
int
m_numberOfRings
= 0;
78
int
m_numberOfLayersA
= 0;
79
int
m_numberOfLayersB
= 0;
80
int
m_numberOfLayersC
= 0;
81
// int m_numberOfStrawsInBarrelROD;
82
// int m_shiftForRightBarrelStraws;
83
int
m_numberOfIdentifierSectors
= 0;
84
85
// Source ID for all robs
86
// std::vector<uint32_t> m_allRobs;
87
88
// Vector for the mapping from phi to ROB Source ID
89
std::vector<uint32_t>
m_phi_to_source
;
90
91
// Identifiers for all straws;
92
// Make 2D because IDs are different depending on which ROD we are
93
std::vector< std::vector<Identifier> >
m_identfierForAllStraws
;
94
// std::vector<Identifier> m_identfierForAllStraws;
95
96
// Hashed Identifiers for all straws;
97
std::vector< std::vector<IdentifierHash> >
m_identfierHashForAllStraws
;
98
99
// Identifiers for all Collections for RODs
100
std::vector<std::vector<IdentifierHash> *>
m_collID
;
101
102
// Private version of number of straws in each layer
103
std::vector< std::vector<int> >
m_ncol
;
104
105
int
m_StrawsByModule
[3]{};
106
107
};
108
109
#endif //TRT_FILLCABLINGDATA_TB04_H
TRT_FillCablingData_TB04
Definition:
TRT_FillCablingData_TB04.h:34
TRT_FillCablingData_TB04::fillData
TRT_CablingData * fillData()
Definition:
TRT_FillCablingData_TB04.cxx:100
TRT_FillCablingData_TB04::m_numberOfRings
int m_numberOfRings
Definition:
TRT_FillCablingData_TB04.h:77
TRT_FillCablingData_TB04::fillCollID
void fillCollID(uint32_t rob_id, std::vector< IdentifierHash > &ids)
Definition:
TRT_FillCablingData_TB04.cxx:310
TRT_FillCablingData_TB04::TRT_FillCablingData_TB04
TRT_FillCablingData_TB04(const std::string &type, const std::string &name, const IInterface *parent)
Definition:
TRT_FillCablingData_TB04.cxx:48
TRT_DetectorManager.h
TRT_FillCablingData_TB04::m_identfierForAllStraws
std::vector< std::vector< Identifier > > m_identfierForAllStraws
Definition:
TRT_FillCablingData_TB04.h:93
TRT_CablingData.h
xAOD::uint32_t
setEventNumber uint32_t
Definition:
EventInfo_v1.cxx:127
TRT_FillCablingData_TB04::m_phi_to_source
std::vector< uint32_t > m_phi_to_source
Definition:
TRT_FillCablingData_TB04.h:89
TRT_FillCablingData_TB04::getRobID
std::vector< uint32_t > getRobID(Identifier id) const
Definition:
TRT_FillCablingData_TB04.cxx:407
TRT_ID.h
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
TRT_FillCablingData_TB04::m_StrawsByModule
int m_StrawsByModule[3]
Definition:
TRT_FillCablingData_TB04.h:105
TRT_FillCablingData_TB04::m_numberOfIdentifierSectors
int m_numberOfIdentifierSectors
Definition:
TRT_FillCablingData_TB04.h:83
TRT_FillCablingData_TB04::defineCollID
void defineCollID()
Definition:
TRT_FillCablingData_TB04.cxx:288
TRT_FillCablingData_TB04::defineParameters
void defineParameters()
Definition:
TRT_FillCablingData_TB04.cxx:106
TRT_FillCablingData_TB04::interfaceID
static const InterfaceID & interfaceID()
Definition:
TRT_FillCablingData_TB04.cxx:61
TRT_FillCablingData_TB04::m_numberOfLayersA
int m_numberOfLayersA
Definition:
TRT_FillCablingData_TB04.h:78
TRT_FillCablingData_TB04::m_numberOfLayersC
int m_numberOfLayersC
Definition:
TRT_FillCablingData_TB04.h:80
IdContext.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
TRT_FillCablingData_TB04::initialize
virtual StatusCode initialize()
Definition:
TRT_FillCablingData_TB04.cxx:66
TRT_FillCablingData_TB04::~TRT_FillCablingData_TB04
virtual ~TRT_FillCablingData_TB04()
Definition:
TRT_FillCablingData_TB04.cxx:57
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
TRT_FillCablingData_TB04::defineTables
void defineTables()
Definition:
TRT_FillCablingData_TB04.cxx:150
TRT_FillCablingData_TB04::m_identfierHashForAllStraws
std::vector< std::vector< IdentifierHash > > m_identfierHashForAllStraws
Definition:
TRT_FillCablingData_TB04.h:97
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
python.subdetectors.mmg.ids
ids
Definition:
mmg.py:8
IdentifierHash.h
TRT_FillCablingData_TB04::m_cntx
IdContext m_cntx
Definition:
TRT_FillCablingData_TB04.h:67
TRT_FillCablingData_TB04::finalize
virtual StatusCode finalize()
Definition:
TRT_FillCablingData_TB04.cxx:91
TRT_ID
Definition:
TRT_ID.h:84
TRT_FillCablingData_TB04::m_TRTHelper
const TRT_ID * m_TRTHelper
Definition:
TRT_FillCablingData_TB04.h:65
TRT_CablingData
Definition:
TRT_CablingData.h:18
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
AthAlgTool
Definition:
AthAlgTool.h:26
TRT_FillCablingData_TB04::m_cabling
TRT_CablingData * m_cabling
Definition:
TRT_FillCablingData_TB04.h:69
IdContext
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
Definition:
IdContext.h:26
TRT_FillCablingData_TB04::m_collID
std::vector< std::vector< IdentifierHash > * > m_collID
Definition:
TRT_FillCablingData_TB04.h:100
TRT_FillCablingData_TB04::m_numberOfLayersB
int m_numberOfLayersB
Definition:
TRT_FillCablingData_TB04.h:79
TRT_FillCablingData_TB04::m_ncol
std::vector< std::vector< int > > m_ncol
Definition:
TRT_FillCablingData_TB04.h:103
Identifier
Definition:
IdentifierFieldParser.cxx:14
Generated on Sun Dec 22 2024 21:21:40 for ATLAS Offline Software by
1.8.18