ATLAS Offline Software
Loading...
Searching...
No Matches
TauPi0Cluster.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
14
15#ifndef TAUEVENT_TAUPI0CLUSTER_H
16#define TAUEVENT_TAUPI0CLUSTER_H
17
18#include <iostream>
19
20//#include "CaloEvent/CaloCluster.h"
21#include "CaloEvent/CaloClusterContainer.h"
22#include "AthLinks/ElementLink.h"
23#include "tauEvent/TauShot.h"
24//#include "AthLinks/ElementLinkVector.h"
25
26namespace Analysis {
27
29
30 public:
33
36 TauPi0Cluster( const TauPi0Cluster& rhs );
37
39 virtual ~TauPi0Cluster();
40
44
48 bool operator==( const TauPi0Cluster& rhs ) const;
49
53 bool operator!=( const TauPi0Cluster& rhs ) const;
54
56 // public member accessors
58 public:
59 void dump(); //just for testing
60
62
64
65
68 float deltaPhi() const;
69
73 float deltaPhi);
74
76
78
79
82 float deltaTheta() const;
83
87 float deltaTheta);
88
90
92
93
96 float engFracEM() const;
97
101 float engFracEM);
102
104
106
107
110 float engFracMAX() const;
111
115 float engFracMAX);
116
118
120
121
124 float engFracCore() const;
125
129 float engFracCore);
130
132
134
135
138 float secondEngDens() const;
139
143 float secondEngDens);
144
146
148
149
152 float LATERAL() const;
153
157 float LATERAL);
158
160
162
163
166 float LONGITUDINAL() const;
167
171 float LONGITUDINAL);
172
174
176
177
180 float EM1CoreFrac() const;
181
185 float EM1CoreFrac);
186
188
190
191
194 float asymmetryInEM1WRTTrk() const;
195
200
202
204
205
208 int NHitsInEM1() const;
209
213 int NHitsInEM1);
214
216
218
219
222 int NPosECells_PS () const;
223
227 int NPosECells_PS);
228
230
232
233
236 int NPosECells_EM1 () const;
237
241 int NPosECells_EM1);
242
244
246
247
250 int NPosECells_EM2 () const;
251
255 int NPosECells_EM2);
256
257
259
261
262
266
271
272
274
276
277
281
286
287
289
291
292
296
301
302
304
306
307
311
316
318
320
321
324 float BDTScore() const;
325
329 float BDTScore);
330
331
332
334 void 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,
337
340
341
345
349
354 const CaloCluster* cluster() const;
355
361 const CaloCluster *cluster,
362 const CaloClusterContainer *cont );
363
364
367 const std::vector<TauShot*>& tauShotVec() const;
368
371 std::vector<TauShot*>& tauShotVec();
372
375 TauShot *tauShot );
376
377
378 // alternative setCluster method
379 // which can call addCluster(CaloCluster*, CaloClusterContainer*)
380
382 const CaloCluster *cluster,
383 const CaloClusterContainer *cont,
384 std::vector<TauShot*> tauShotVec,
385 float DELTA_PHI,
386 float DELTA_THETA,
387 float ENG_FRAC_EM,
388 float ENG_FRAC_MAX,
389 float ENG_FRAC_CORE,
390 float SECOND_ENG_DENS,
391 float LATERAL,
392 float LONGITUDINAL,
393 float EM1CoreFrac,
395 int NHitsInEM1,
396 int NPosECells_PS,
397 int NPosECells_EM1,
398 int NPosECells_EM2,
403 float BDTScore
404 );
405
406
407
409 // private data
411 private:
412
415
416 // shots
417 std::vector<TauShot*> m_tauShotVector;
418
439 };
440
441} //end of namespace analysis
442
444#include "TauPi0Cluster.icc"
445
446#endif // TAUEVENT_TAUPI0CLUSTER_H
void setEngFracEM(float engFracEM)
Set engFracEM.
TauPi0Cluster & operator=(const TauPi0Cluster &rhs)
assignment operator
float LONGITUDINAL() const
Get LONGITUDINAL.
void setSecondEtaWRTClusterPosition_EM1(float secondEtaWRTClusterPosition_EM1)
Set secondEtaWRTClusterPosition_EM1.
const CaloCluster * cluster() const
Get cluster Consider using direct access through clusterLink() instead.
float deltaTheta() const
Get deltaTheta.
bool operator==(const TauPi0Cluster &rhs) const
Equality operator.
float EM1CoreFrac() const
Get EM1CoreFrac.
float m_DELTA_PHI
cluster external properties
void setPi0Cluster(const CaloCluster *cluster, const CaloClusterContainer *cont, std::vector< TauShot * > tauShotVec, 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, float EM1CoreFrac, float asymmetryInEM1WRTTrk, int NHitsInEM1, int NPosECells_PS, int NPosECells_EM1, int NPosECells_EM2, float firstEtaWRTClusterPosition_EM1, float firstEtaWRTClusterPosition_EM2, float secondEtaWRTClusterPosition_EM1, float secondEtaWRTClusterPosition_EM2, float BDTScore)
void setFirstEtaWRTClusterPosition_EM1(float firstEtaWRTClusterPosition_EM1)
Set firstEtaWRTClusterPosition_EM1.
const ElementLink< CaloClusterContainer > & clusterLink() const
Get (const) cluster link.
TauPi0Cluster()
default constructor
void setCluster(const CaloCluster *cluster, const CaloClusterContainer *cont)
Set cluster to pi0 cluster vector Consider using direct access through clusterLink() instead.
void setEngFracCore(float engFracCore)
Set engFracCore.
float engFracCore() const
Get engFracCore.
float asymmetryInEM1WRTTrk() const
Get asymmetryInEM1WRTTrk.
void 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, float EM1CoreFrac, float asymmetryInEM1WRTTrk, int NHitsInEM1, int NPosECells_PS, int NPosECells_EM1, int NPosECells_EM2, float firstEtaWRTClusterPosition_EM1, float firstEtaWRTClusterPosition_EM2, float secondEtaWRTClusterPosition_EM1, float secondEtaWRTClusterPosition_EM2, float BDTScore)
setter
void setLONGITUDINAL(float LONGITUDINAL)
Set LONGITUDINAL.
void setNHitsInEM1(int NHitsInEM1)
Set NHitsInEM1.
bool operator!=(const TauPi0Cluster &rhs) const
Inequality operator.
virtual ~TauPi0Cluster()
destructor (virtual)
void setFirstEtaWRTClusterPosition_EM2(float firstEtaWRTClusterPosition_EM2)
Set firstEtaWRTClusterPosition_EM2.
void setBDTScore(float BDTScore)
Set BDTScore.
float LATERAL() const
Get LATERAL.
const std::vector< TauShot * > & tauShotVec() const
Get shot vector (const)
void setNPosECells_EM2(int NPosECells_EM2)
Set NPosECells_EM2.
void setDeltaTheta(float deltaTheta)
Set deltaTheta.
float engFracMAX() const
Get engFracMAX.
void addTauShot(TauShot *tauShot)
Add shot to shot vector.
float firstEtaWRTClusterPosition_EM2() const
Get firstEtaWRTClusterPosition_EM2.
float engFracEM() const
Get engFracEM.
ElementLink< CaloClusterContainer > m_cluster
cluster
ElementLink< CaloClusterContainer > & clusterLink()
Get cluster link.
float firstEtaWRTClusterPosition_EM1() const
Get firstEtaWRTClusterPosition_EM1.
float deltaPhi() const
Get deltaPhi.
float secondEtaWRTClusterPosition_EM2() const
Get secondEtaWRTClusterPosition_EM2.
float BDTScore() const
Get BDTScore.
float secondEtaWRTClusterPosition_EM1() const
Get secondEtaWRTClusterPosition_EM1.
int NPosECells_EM2() const
Get NPosECells_EM2.
void setNPosECells_EM1(int NPosECells_EM1)
Set NPosECells_EM1.
int NHitsInEM1() const
Get NHitsInEM1.
std::vector< TauShot * > m_tauShotVector
void setEM1CoreFrac(float EM1CoreFrac)
Set EM1CoreFrac.
void setLATERAL(float LATERAL)
Set LATERAL.
void setEngFracMAX(float engFracMAX)
Set engFracMAX.
void setAsymmetryInEM1WRTTrk(float asymmetryInEM1WRTTrk)
Set asymmetryInEM1WRTTrk.
std::vector< TauShot * > & tauShotVec()
Get shot vector.
int NPosECells_EM1() const
Get NPosECells_EM1.
float secondEngDens() const
Get secondEngDens.
int NPosECells_PS() const
Get NPosECells_PS.
void setNPosECells_PS(int NPosECells_PS)
Set NPosECells_PS.
void setSecondEngDens(float secondEngDens)
Set secondEngDens.
void setDeltaPhi(float deltaPhi)
Set deltaPhi.
void setSecondEtaWRTClusterPosition_EM2(float secondEtaWRTClusterPosition_EM2)
Set secondEtaWRTClusterPosition_EM2.
Principal data class for CaloCell clusters.
The namespace of all packages in PhysicsAnalysis/JetTagging.