ATLAS Offline Software
Loading...
Searching...
No Matches
TauPi0Cluster.icc
Go to the documentation of this file.
1// dear emacs, this is -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7
8namespace Analysis{
9
10 //-------------------------------------------------------------------------
11 // pi0 - pi0 cluster
12 //-------------------------------------------------------------------------
13 inline void TauPi0Cluster::setExternalVars(float DELTA_PHI, float DELTA_THETA, float ENG_FRAC_EM, float ENG_FRAC_MAX, float ENG_FRAC_CORE, float SECOND_ENG_DENS, float LATERAL, float LONGITUDINAL,
14 float EM1CoreFrac, float asymmetryInEM1WRTTrk, int NHitsInEM1 , int NPosECells_PS, int NPosECells_EM1, int NPosECells_EM2,
15 float firstEtaWRTClusterPosition_EM1, float firstEtaWRTClusterPosition_EM2,
16 float secondEtaWRTClusterPosition_EM1, float secondEtaWRTClusterPosition_EM2, float BDTScore)
17 {
18 m_DELTA_PHI = DELTA_PHI;
19 m_DELTA_THETA = DELTA_THETA;
20 m_ENG_FRAC_EM = ENG_FRAC_EM;
21 m_ENG_FRAC_MAX = ENG_FRAC_MAX;
22 m_ENG_FRAC_CORE = ENG_FRAC_CORE;
23 m_SECOND_ENG_DENS = SECOND_ENG_DENS;
24 m_LATERAL = LATERAL;
25 m_LONGITUDINAL = LONGITUDINAL;
26 m_EM1CoreFrac = EM1CoreFrac;
27 m_asymmetryInEM1WRTTrk = asymmetryInEM1WRTTrk;
28 m_NHitsInEM1 = NHitsInEM1;
29 m_NPosECells_PS = NPosECells_PS;
30 m_NPosECells_EM1 = NPosECells_EM1;
31 m_NPosECells_EM2 = NPosECells_EM2;
32 m_firstEtaWRTClusterPosition_EM1 = firstEtaWRTClusterPosition_EM1;
33 m_firstEtaWRTClusterPosition_EM2 = firstEtaWRTClusterPosition_EM2;
34 m_secondEtaWRTClusterPosition_EM1 = secondEtaWRTClusterPosition_EM1;
35 m_secondEtaWRTClusterPosition_EM2 = secondEtaWRTClusterPosition_EM2;
36 m_BDTScore = BDTScore;
37 }
38
39 //-------------------------------------------------------------------------
40 // pi0 - pi0 cluster
41 //-------------------------------------------------------------------------
42
43 inline const CaloCluster* TauPi0Cluster::cluster() const
44 {
45 return *m_cluster;
46 }
47
48 inline const ElementLink<CaloClusterContainer>& TauPi0Cluster::clusterLink() const
49 {
50 return m_cluster;
51 }
52
53 inline ElementLink<CaloClusterContainer>& TauPi0Cluster::clusterLink()
54 {
55 return m_cluster;
56 }
57
58 inline void TauPi0Cluster::setCluster( const CaloCluster *cluster, const CaloClusterContainer *cont )
59 {
60 if( !cont )
61 m_cluster.setElement( cluster );
62 else
63 m_cluster.toContainedElement( *cont, cluster );
64 }
65
66 inline const std::vector<TauShot*>& TauPi0Cluster::tauShotVec() const
67 {
68 return m_tauShotVector;
69 }
70
71 inline std::vector<TauShot*>& TauPi0Cluster::tauShotVec()
72 {
73 return m_tauShotVector;
74 }
75
76 inline void TauPi0Cluster::addTauShot(TauShot *tauShot )
77 {
78 m_tauShotVector.push_back( tauShot );
79 }
80
81 inline float TauPi0Cluster::deltaPhi() const
82 {
83 return m_DELTA_PHI;
84 }
85
86 inline void TauPi0Cluster::setDeltaPhi(float deltaPhi)
87 {
88 m_DELTA_PHI=deltaPhi;
89 }
90
91 inline float TauPi0Cluster::deltaTheta() const
92 {
93 return m_DELTA_THETA;
94 }
95
96 inline void TauPi0Cluster::setDeltaTheta(float deltaTheta)
97 {
98 m_DELTA_THETA=deltaTheta;
99 }
100
101 inline float TauPi0Cluster::engFracEM() const
102 {
103 return m_ENG_FRAC_EM;
104 }
105
106 inline void TauPi0Cluster::setEngFracEM(float engFracEM)
107 {
108 m_ENG_FRAC_EM=engFracEM;
109 }
110
111 inline float TauPi0Cluster::engFracMAX() const
112 {
113 return m_ENG_FRAC_MAX;
114 }
115
116 inline void TauPi0Cluster::setEngFracMAX(float engFracMAX)
117 {
118 m_ENG_FRAC_MAX=engFracMAX;
119 }
120
121 inline float TauPi0Cluster::engFracCore() const
122 {
123 return m_ENG_FRAC_CORE;
124 }
125
126 inline void TauPi0Cluster::setEngFracCore(float engFracCore)
127 {
128 m_ENG_FRAC_CORE=engFracCore;
129 }
130
131 inline float TauPi0Cluster::secondEngDens() const
132 {
133 return m_SECOND_ENG_DENS;
134 }
135
136 inline void TauPi0Cluster::setSecondEngDens(float secondEngDens)
137 {
138 m_SECOND_ENG_DENS=secondEngDens;
139 }
140
141 inline float TauPi0Cluster::LATERAL() const
142 {
143 return m_LATERAL;
144 }
145
146 inline void TauPi0Cluster::setLATERAL(float LATERAL)
147 {
148 m_LATERAL=LATERAL;
149 }
150
151 inline float TauPi0Cluster::LONGITUDINAL() const
152 {
153 return m_LONGITUDINAL;
154 }
155
156 inline void TauPi0Cluster::setLONGITUDINAL(float LONGITUDINAL)
157 {
158 m_LONGITUDINAL=LONGITUDINAL;
159 }
160
161 inline float TauPi0Cluster::EM1CoreFrac() const
162 {
163 return m_EM1CoreFrac;
164 }
165
166 inline void TauPi0Cluster::setEM1CoreFrac(float EM1CoreFrac)
167 {
168 m_EM1CoreFrac=EM1CoreFrac;
169 }
170
171 inline float TauPi0Cluster::asymmetryInEM1WRTTrk() const
172 {
173 return m_asymmetryInEM1WRTTrk;
174 }
175
176 inline void TauPi0Cluster::setAsymmetryInEM1WRTTrk(float asymmetryInEM1WRTTrk)
177 {
178 m_asymmetryInEM1WRTTrk=asymmetryInEM1WRTTrk;
179 }
180
181 inline int TauPi0Cluster::NHitsInEM1() const
182 {
183 return m_NHitsInEM1;
184 }
185
186 inline void TauPi0Cluster::setNHitsInEM1(int NHitsInEM1)
187 {
188 m_NHitsInEM1=NHitsInEM1;
189 }
190
191 inline int TauPi0Cluster::NPosECells_PS() const
192 {
193 return m_NPosECells_PS;
194 }
195
196 inline void TauPi0Cluster::setNPosECells_PS(int NPosECells_PS)
197 {
198 m_NPosECells_PS=NPosECells_PS;
199 }
200
201 inline int TauPi0Cluster::NPosECells_EM1() const
202 {
203 return m_NPosECells_EM1;
204 }
205
206 inline void TauPi0Cluster::setNPosECells_EM1(int NPosECells_EM1)
207 {
208 m_NPosECells_EM1=NPosECells_EM1;
209 }
210
211 inline int TauPi0Cluster::NPosECells_EM2() const
212 {
213 return m_NPosECells_EM2;
214 }
215
216 inline void TauPi0Cluster::setNPosECells_EM2(int NPosECells_EM2)
217 {
218 m_NPosECells_EM2=NPosECells_EM2;
219 }
220
221 inline float TauPi0Cluster::firstEtaWRTClusterPosition_EM1() const
222 {
223 return m_firstEtaWRTClusterPosition_EM1;
224 }
225
226 inline void TauPi0Cluster::setFirstEtaWRTClusterPosition_EM1(float firstEtaWRTClusterPosition_EM1)
227 {
228 m_firstEtaWRTClusterPosition_EM1=firstEtaWRTClusterPosition_EM1;
229 }
230
231 inline float TauPi0Cluster::firstEtaWRTClusterPosition_EM2() const
232 {
233 return m_firstEtaWRTClusterPosition_EM2;
234 }
235
236 inline void TauPi0Cluster::setFirstEtaWRTClusterPosition_EM2(float firstEtaWRTClusterPosition_EM2)
237 {
238 m_firstEtaWRTClusterPosition_EM2=firstEtaWRTClusterPosition_EM2;
239 }
240
241 inline float TauPi0Cluster::secondEtaWRTClusterPosition_EM1() const
242 {
243 return m_secondEtaWRTClusterPosition_EM1;
244 }
245
246 inline void TauPi0Cluster::setSecondEtaWRTClusterPosition_EM1(float secondEtaWRTClusterPosition_EM1)
247 {
248 m_secondEtaWRTClusterPosition_EM1=secondEtaWRTClusterPosition_EM1;
249 }
250
251 inline float TauPi0Cluster::secondEtaWRTClusterPosition_EM2() const
252 {
253 return m_secondEtaWRTClusterPosition_EM2;
254 }
255
256 inline void TauPi0Cluster::setSecondEtaWRTClusterPosition_EM2(float secondEtaWRTClusterPosition_EM2)
257 {
258 m_secondEtaWRTClusterPosition_EM2=secondEtaWRTClusterPosition_EM2;
259 }
260
261 inline float TauPi0Cluster::BDTScore() const
262 {
263 return m_BDTScore;
264 }
265
266 inline void TauPi0Cluster::setBDTScore(float BDTScore)
267 {
268 m_BDTScore=BDTScore;
269 }
270
271
272 //Alternative setter method
273
274 inline void TauPi0Cluster::setPi0Cluster(
275 const CaloCluster *cluster,
276 const CaloClusterContainer *cont,
277 std::vector<TauShot*> tauShotVec,
278 float DELTA_PHI,
279 float DELTA_THETA,
280 float ENG_FRAC_EM,
281 float ENG_FRAC_MAX,
282 float ENG_FRAC_CORE,
283 float SECOND_ENG_DENS,
284 float LATERAL,
285 float LONGITUDINAL,
286 float EM1CoreFrac,
287 float asymmetryInEM1WRTTrk,
288 int NHitsInEM1,
289 int NPosECells_PS,
290 int NPosECells_EM1,
291 int NPosECells_EM2,
292 float firstEtaWRTClusterPosition_EM1,
293 float firstEtaWRTClusterPosition_EM2,
294 float secondEtaWRTClusterPosition_EM1,
295 float secondEtaWRTClusterPosition_EM2,
296 float BDTScore
297 )
298 {
299 this->setCluster(cluster, cont);
300 std::vector<TauShot*>::iterator itr = tauShotVec.begin();
301 for( ; itr!=tauShotVec.end(); ++itr ){
302 this->addTauShot(*itr);
303 }
304 this->setExternalVars(DELTA_PHI, DELTA_THETA, ENG_FRAC_EM, ENG_FRAC_MAX, ENG_FRAC_CORE, SECOND_ENG_DENS, LATERAL, LONGITUDINAL,
305 EM1CoreFrac, asymmetryInEM1WRTTrk, NHitsInEM1, NPosECells_PS, NPosECells_EM1, NPosECells_EM2,
306 firstEtaWRTClusterPosition_EM1, firstEtaWRTClusterPosition_EM2, secondEtaWRTClusterPosition_EM1, secondEtaWRTClusterPosition_EM2, BDTScore);
307 }
308
309
310
311} //end of namespace analysis