ATLAS Offline Software
T2GeometryTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 // Infrastructure
8 
9 T2GeometryTool::T2GeometryTool(const std::string &type, const std::string & name,
10  const IInterface* parent) : AthAlgTool(type,name,parent)
11 {
12 
13  declareProperty( "nStripEtaEM0nar" , m_nStripetaEMnar[0] = 4); // 0.1
14  declareProperty( "nStripPhiEM0nar" , m_nStripphiEMnar[0] = 1); // 0.098
15  declareProperty( "nStripEtaEM1nar" , m_nStripetaEMnar[1] = 32); // 0.1
16  declareProperty( "nStripPhiEM1nar" , m_nStripphiEMnar[1] = 1); // 0.098
17  declareProperty( "nStripEtaEM2nar" , m_nStripetaEMnar[2] = 4); // 0.1
18  declareProperty( "nStripPhiEM2nar" , m_nStripphiEMnar[2] = 4); // 0.098
19  declareProperty( "nStripEtaEM3nar" , m_nStripetaEMnar[3] = 2); // 0.1
20  declareProperty( "nStripPhiEM3nar" , m_nStripphiEMnar[3] = 4); // 0.098
21 
22  declareProperty( "nStripEtaEM0wid" , m_nStripetaEMwid[0] = 8); // 0.2
23  declareProperty( "nStripPhiEM0wid" , m_nStripphiEMwid[0] = 2); // 0.196
24  declareProperty( "nStripEtaEM1wid" , m_nStripetaEMwid[1] = 64); // 0.2
25  declareProperty( "nStripPhiEM1wid" , m_nStripphiEMwid[1] = 2); // 0.196
26  declareProperty( "nStripEtaEM2wid" , m_nStripetaEMwid[2] = 8); // 0.2
27  declareProperty( "nStripPhiEM2wid" , m_nStripphiEMwid[2] = 8); // 0.196
28  declareProperty( "nStripEtaEM3wid" , m_nStripetaEMwid[3] = 4); // 0.2
29  declareProperty( "nStripPhiEM3wid" , m_nStripphiEMwid[3] = 8); // 0.196
30 
31  declareProperty( "nStripEtaEM0nor" , m_nStripetaEMnor[0] = 16); // 0.4
32  declareProperty( "nStripPhiEM0nor" , m_nStripphiEMnor[0] = 4); // 0.39
33  declareProperty( "nStripEtaEM1nor" , m_nStripetaEMnor[1] = 128); // 0.4
34  declareProperty( "nStripPhiEM1nor" , m_nStripphiEMnor[1] = 4); // 0.39
35  declareProperty( "nStripEtaEM2nor" , m_nStripetaEMnor[2] = 16); // 0.4
36  declareProperty( "nStripPhiEM2nor" , m_nStripphiEMnor[2] = 16); // 0.39
37  declareProperty( "nStripEtaEM3nor" , m_nStripetaEMnor[3] = 8); // 0.4
38  declareProperty( "nStripPhiEM3nor" , m_nStripphiEMnor[3] = 16); // 0.39
39 
40 
41  declareProperty( "nStripEtaHAD0nar" , m_nStripetaHADnar[0] = 1); // 0.1
42  declareProperty( "nStripPhiHAD0nar" , m_nStripphiHADnar[0] = 1); // 0.098
43  declareProperty( "nStripEtaHAD1nar" , m_nStripetaHADnar[1] = 1); // 0.1
44  declareProperty( "nStripPhiHAD1nar" , m_nStripphiHADnar[1] = 1); // 0.098
45  declareProperty( "nStripEtaHAD2nar" , m_nStripetaHADnar[2] = 1); // 0.2
46  declareProperty( "nStripPhiHAD2nar" , m_nStripphiHADnar[2] = 1); // 0.098
47 
48  declareProperty( "nStripEtaHAD0wid" , m_nStripetaHADwid[0] = 2); // 0.2
49  declareProperty( "nStripPhiHAD0wid" , m_nStripphiHADwid[0] = 2); // 0.196
50  declareProperty( "nStripEtaHAD1wid" , m_nStripetaHADwid[1] = 2); // 0.2
51  declareProperty( "nStripPhiHAD1wid" , m_nStripphiHADwid[1] = 2); // 0.196
52  declareProperty( "nStripEtaHAD2wid" , m_nStripetaHADwid[2] = 1); // 0.2
53  declareProperty( "nStripPhiHAD2wid" , m_nStripphiHADwid[2] = 2); // 0.196
54 
55  declareProperty( "nStripEtaHAD0nor" , m_nStripetaHADnor[0] = 4); // 0.4
56  declareProperty( "nStripPhiHAD0nor" , m_nStripphiHADnor[0] = 4); // 0.39
57  declareProperty( "nStripEtaHAD1nor" , m_nStripetaHADnor[1] = 4); // 0.4
58  declareProperty( "nStripPhiHAD1nor" , m_nStripphiHADnor[1] = 4); // 0.39
59  declareProperty( "nStripEtaHAD2nor" , m_nStripetaHADnor[2] = 2); // 0.4
60  declareProperty( "nStripPhiHAD2nor" , m_nStripphiHADnor[2] = 4); // 0.39
61 
62 
63 
64 }
65 
66 
68 {
69  ATH_MSG_DEBUG("in initialize() by T2GeometryTool");
70  return StatusCode::SUCCESS;
71 }
72 
73 
74 
75 const int T2GeometryTool::m_netareg[7] = {3,7,4,3,2,2,3};
76 
77 const double T2GeometryTool::m_etareg[7][8] = {
78  {0.0,1.4 ,1.5 ,1.8,0.0,0.0,0.0,0.0},
79  {0.0,1.4 ,1.5 ,1.8,2.0,2.4,2.5,3.2},
80  {0.0,1.4 ,1.425,2.5,3.2,0.0,0.0,0.0},
81  {0.0,1.35,1.5 ,2.5,0.0,0.0,0.0,0.0},
82  {0.0,2.5 ,3.2 ,0.0,0.0,0.0,0.0,0.0},
83  {0.0,2.5 ,3.2 ,0.0,0.0,0.0,0.0,0.0},
84  {0.0,1.5 ,2.5 ,3.2,0.0,0.0,0.0,0.0}};
85 const double T2GeometryTool::m_etaGran[7][7] = {
86  {0.025 ,0.024,0.025 ,0.0 ,0.0 ,0.0 ,0.0},
87  {0.003125,0.025,0.003125,0.0041667,0.00625,0.025,0.1},
88  {0.025 ,0.05 ,0.025 ,0.1 ,0.0 ,0.0 ,0.0},
89  {0.05 ,0.001,0.05 ,0.0 ,0.0 ,0.0 ,0.0},
90  {0.1 ,0.2 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0},
91  {0.1 ,0.2 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0},
92  {0.2 ,0.1 ,0.2 ,0.0 ,0.0 ,0.0 ,0.0}};
93 
94 
95 const int T2GeometryTool::m_nphireg[7] = {1,3,2,1,2,2,2};
96 
97 const double T2GeometryTool::m_phireg[7][4] = {
98  {0.0,1.8,0.0 ,0.0},
99  {0.0,1.4,1.475,3.2},
100  {0.0,2.5,3.2 ,0.0},
101  {0.0,2.5,0.0 ,0.0},
102  {0.0,2.5,3.2 ,0.0},
103  {0.0,2.5,3.2 ,0.0},
104  {0.0,2.5,3.2 ,0.0}};
105 
106 const double T2GeometryTool::m_phiGran[7][3] = {
107  {0.0981748,0.0,0.0},
108  {0.0981748,0.0245437,0.0981748},
109  {0.0245437,0.0981748,0.0},
110  {0.0245437,0.0 ,0.0},
111  {0.0981748,0.19635 ,0.0},
112  {0.0981748,0.19635 ,0.0},
113  {0.0981748,0.19635 ,0.0}};
114 
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
T2GeometryTool::m_nStripphiEMwid
int m_nStripphiEMwid[4]
Definition: T2GeometryTool.h:188
T2GeometryTool::m_nStripetaHADnor
int m_nStripetaHADnor[3]
Definition: T2GeometryTool.h:199
T2GeometryTool::m_nphireg
static const int m_nphireg[7]
Definition: T2GeometryTool.h:206
T2GeometryTool::m_phiGran
static const double m_phiGran[7][3]
Definition: T2GeometryTool.h:208
T2GeometryTool.h
T2GeometryTool::m_nStripetaEMnor
int m_nStripetaEMnor[4]
Definition: T2GeometryTool.h:190
T2GeometryTool::m_etaGran
static const double m_etaGran[7][7]
Definition: T2GeometryTool.h:205
T2GeometryTool::m_phireg
static const double m_phireg[7][4]
Definition: T2GeometryTool.h:207
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
T2GeometryTool::m_nStripphiHADnar
int m_nStripphiHADnar[3]
Definition: T2GeometryTool.h:194
test_pyathena.parent
parent
Definition: test_pyathena.py:15
T2GeometryTool::m_netareg
static const int m_netareg[7]
Granularity and eta ranges relevant for above energy sums.
Definition: T2GeometryTool.h:203
T2GeometryTool::m_nStripetaHADwid
int m_nStripetaHADwid[3]
Definition: T2GeometryTool.h:196
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
T2GeometryTool::m_nStripphiHADwid
int m_nStripphiHADwid[3]
Definition: T2GeometryTool.h:197
T2GeometryTool::m_nStripphiHADnor
int m_nStripphiHADnor[3]
Definition: T2GeometryTool.h:200
T2GeometryTool::m_nStripetaEMwid
int m_nStripetaEMwid[4]
Definition: T2GeometryTool.h:187
T2GeometryTool::m_etareg
static const double m_etareg[7][8]
Definition: T2GeometryTool.h:204
T2GeometryTool::initialize
virtual StatusCode initialize() override
Initialize method.
Definition: T2GeometryTool.cxx:67
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
T2GeometryTool::m_nStripphiEMnar
int m_nStripphiEMnar[4]
Definition: T2GeometryTool.h:185
T2GeometryTool::m_nStripetaHADnar
int m_nStripetaHADnar[3]
Definition: T2GeometryTool.h:193
T2GeometryTool::m_nStripetaEMnar
int m_nStripetaEMnar[4]
Reference changed to vectors.
Definition: T2GeometryTool.h:184
AthAlgTool
Definition: AthAlgTool.h:26
T2GeometryTool::m_nStripphiEMnor
int m_nStripphiEMnor[4]
Definition: T2GeometryTool.h:191
T2GeometryTool::T2GeometryTool
T2GeometryTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
Definition: T2GeometryTool.cxx:9