#include <EgammaHitsShowerDepth.h>
|
| float | depth (const float &aeta, const float start_crack, const float end_crack, const CxxUtils::Array< 2 > &sampling_depth, const float etamax, const xAOD::TrigEMCluster *cluster) const |
| | Calculate the depth of the cluster.
|
|
| void | barrelCoefs (const float &aeta, float R[4]) const |
| | Calculate the sampling depth coefficients for the barrel.
|
| bool | endcapCoefs (const float &aeta, const CxxUtils::Array< 2 > &sampling_depth, const float etamax, float R[4]) const |
| | Calculate the sampling depth coefficients for the endcap.
|
Definition at line 14 of file EgammaHitsShowerDepth.h.
◆ barrelCoefs()
| void EgammaHitsShowerDepth::barrelCoefs |
( |
const float & | aeta, |
|
|
float | R[4] ) const |
|
private |
Calculate the sampling depth coefficients for the barrel.
- Parameters
-
| aeta | abs(eta) of the cluster. |
| R[out] | The set of coefficients per layer. |
Definition at line 89 of file EgammaHitsShowerDepth.cxx.
90{
91
92
93
94
95
96
97
98
99 static const float
100 X0IN = 1.6,
101 X0S1 = 6.0,
102
103
104
105
106
107
108
109
110 ETASTEP = 0.8,
111
112
113 X0THI = 23.74,
114 X0TLO = 19.177;
115
116 float X0T ;
117 float R12, R23;
118
119 if ( aeta < ETASTEP ) {
120
121 X0T = X0THI;
122
123
124 }else{
125
126 X0T = X0TLO;
127
128
129 }
130
131 R[0] = (X0IN) * cosh(aeta);
132
133
134
135
136 R12 = X0S1;
137
138
139
140 float RADLTOT = X0T*cosh(aeta);
141
142
143
144 if (aeta < 0.5){
145 R23 = 22 * cosh(aeta) ;
146 }else{
147 R23 = 25;
148 }
149
150 R[1] =
R[0] + (R12 -
R[0])/2 ;
151 R[2] = R12 + (R23 - R12)/2;
152 R[3] = R23 + (RADLTOT - R23)/2;
153}
double R(const INavigable4Momentum *p1, const double v_eta, const double v_phi)
◆ depth()
| float EgammaHitsShowerDepth::depth |
( |
const float & | aeta, |
|
|
const float | start_crack, |
|
|
const float | end_crack, |
|
|
const CxxUtils::Array< 2 > & | sampling_depth, |
|
|
const float | etamax, |
|
|
const xAOD::TrigEMCluster * | cluster ) const |
Calculate the depth of the cluster.
- Parameters
-
| aeta | abs(eta) of the cluster. |
| cluster | Cluster for which to calculate the depth. |
| log | Stream for debug messages. |
Definition at line 44 of file EgammaHitsShowerDepth.cxx.
50{
51
53 int si;
54
55 if (aeta < start_crack) {
57 si = 0;
58 }
59 else if (aeta > end_crack) {
61 return 0;
62 si = 1;
63 }
64 else
65 return 0;
66
67 double rsum = 0;
68 double esum = 0;
69 for (
int i=0;
i < 4;
i++) {
73 }
74
75 if (esum == 0)
76 return 0;
77
78 float depth = rsum / esum;
79
81}
static const CaloSampling::CaloSample m_samps[2][4]
float depth(const float &aeta, const float start_crack, const float end_crack, const CxxUtils::Array< 2 > &sampling_depth, const float etamax, const xAOD::TrigEMCluster *cluster) const
Calculate the depth of the cluster.
void barrelCoefs(const float &aeta, float R[4]) const
Calculate the sampling depth coefficients for the barrel.
bool endcapCoefs(const float &aeta, const CxxUtils::Array< 2 > &sampling_depth, const float etamax, float R[4]) const
Calculate the sampling depth coefficients for the endcap.
float energy() const
get Energy (calibrated)
◆ endcapCoefs()
| bool EgammaHitsShowerDepth::endcapCoefs |
( |
const float & | aeta, |
|
|
const CxxUtils::Array< 2 > & | sampling_depth, |
|
|
const float | etamax, |
|
|
float | R[4] ) const |
|
private |
Calculate the sampling depth coefficients for the endcap.
- Parameters
-
| aeta | abs(eta) of the cluster. |
| sampling_depth | Array of sampling depths per bin/sampling in the EC. |
| etamax | Maximum eta value in sampling_depth. |
| R[out] | The set of coefficients per layer. |
Definition at line 163 of file EgammaHitsShowerDepth.cxx.
167{
168 unsigned int ibin = (static_cast<unsigned int> (aeta / etamax * 100)) ;
169 if (ibin >= sampling_depth.
size())
170 return false;
171
172 for (
int i=0;
i < 4;
i++)
173 R[i] = sampling_depth[ibin][i+1];
174 return true;
175}
unsigned int size(unsigned int dim=0) const
Return the size of the array along one dimension.
◆ m_samps
Initial value:=
{ { CaloSampling::PreSamplerB,
CaloSampling::EMB1,
CaloSampling::EMB2,
CaloSampling::EMB3 },
{ CaloSampling::PreSamplerE,
CaloSampling::EME1,
CaloSampling::EME2,
CaloSampling::EME3 }
}
Definition at line 26 of file EgammaHitsShowerDepth.h.
26 :
27 void barrelCoefs (
const float &aeta,
float R[4])
const;
29 const CxxUtils::Array<2>& sampling_depth,
30 const float etamax,
31 float R[4]) const;
32};
33
34
35
The documentation for this class was generated from the following files: