ATLAS Offline Software
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 
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 
26 namespace Analysis {
27 
28  class TauPi0Cluster {
29 
30  public:
32  TauPi0Cluster();
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 
65 
68  float deltaPhi() const;
69 
73  float deltaPhi);
74 
76 
79 
82  float deltaTheta() const;
83 
87  float deltaTheta);
88 
90 
93 
96  float engFracEM() const;
97 
101  float engFracEM);
102 
104 
107 
110  float engFracMAX() const;
111 
115  float engFracMAX);
116 
118 
121 
124  float engFracCore() const;
125 
129  float engFracCore);
130 
132 
135 
138  float secondEngDens() const;
139 
143  float secondEngDens);
144 
146 
149 
152  float LATERAL() const;
153 
157  float LATERAL);
158 
160 
163 
166  float LONGITUDINAL() const;
167 
171  float LONGITUDINAL);
172 
174 
177 
180  float EM1CoreFrac() const;
181 
185  float EM1CoreFrac);
186 
188 
191 
194  float asymmetryInEM1WRTTrk() const;
195 
199  float asymmetryInEM1WRTTrk);
200 
202 
205 
208  int NHitsInEM1() const;
209 
213  int NHitsInEM1);
214 
216 
219 
222  int NPosECells_PS () const;
223 
227  int NPosECells_PS);
228 
230 
233 
236  int NPosECells_EM1 () const;
237 
241  int NPosECells_EM1);
242 
244 
247 
250  int NPosECells_EM2 () const;
251 
255  int NPosECells_EM2);
256 
257 
259 
262 
266 
271 
272 
274 
277 
281 
286 
287 
289 
292 
296 
301 
302 
304 
307 
311 
316 
318 
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,
394  float asymmetryInEM1WRTTrk,
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 
420  float m_DELTA_PHI;
426  float m_LATERAL;
438  float m_BDTScore;
439  };
440 
441 } //end of namespace analysis
442 
444 #include "TauPi0Cluster.icc"
445 
446 #endif // TAUEVENT_TAUPI0CLUSTER_H
Analysis::TauPi0Cluster::setDeltaPhi
void setDeltaPhi(float deltaPhi)
Set deltaPhi.
Analysis::TauPi0Cluster::m_asymmetryInEM1WRTTrk
float m_asymmetryInEM1WRTTrk
Definition: TauPi0Cluster.h:429
Analysis::TauPi0Cluster::engFracCore
float engFracCore() const
Get engFracCore.
Analysis::TauPi0Cluster::setNPosECells_EM2
void setNPosECells_EM2(int NPosECells_EM2)
Set NPosECells_EM2.
Analysis::TauPi0Cluster::addTauShot
void addTauShot(TauShot *tauShot)
Add shot to shot vector.
Analysis::TauPi0Cluster::deltaTheta
float deltaTheta() const
Get deltaTheta.
Analysis::TauPi0Cluster::setLONGITUDINAL
void setLONGITUDINAL(float LONGITUDINAL)
Set LONGITUDINAL.
Analysis::TauPi0Cluster::clusterLink
const ElementLink< CaloClusterContainer > & clusterLink() const
Get (const) cluster link.
Analysis::TauPi0Cluster::~TauPi0Cluster
virtual ~TauPi0Cluster()
destructor (virtual)
Definition: TauPi0Cluster.cxx:147
Analysis::TauPi0Cluster::m_DELTA_THETA
float m_DELTA_THETA
Definition: TauPi0Cluster.h:421
Analysis::TauPi0Cluster::deltaPhi
float deltaPhi() const
Get deltaPhi.
Analysis::TauPi0Cluster::EM1CoreFrac
float EM1CoreFrac() const
Get EM1CoreFrac.
Analysis::TauPi0Cluster::BDTScore
float BDTScore() const
Get BDTScore.
Analysis::TauPi0Cluster::m_LATERAL
float m_LATERAL
Definition: TauPi0Cluster.h:426
Analysis::TauPi0Cluster::setFirstEtaWRTClusterPosition_EM1
void setFirstEtaWRTClusterPosition_EM1(float firstEtaWRTClusterPosition_EM1)
Set firstEtaWRTClusterPosition_EM1.
CaloClusterContainer
Storable container for CaloCluster.
Definition: Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h:37
Analysis::TauPi0Cluster::setEngFracEM
void setEngFracEM(float engFracEM)
Set engFracEM.
Analysis::TauPi0Cluster::setEM1CoreFrac
void setEM1CoreFrac(float EM1CoreFrac)
Set EM1CoreFrac.
Analysis::TauPi0Cluster::secondEtaWRTClusterPosition_EM1
float secondEtaWRTClusterPosition_EM1() const
Get secondEtaWRTClusterPosition_EM1.
Analysis::TauPi0Cluster::m_ENG_FRAC_CORE
float m_ENG_FRAC_CORE
Definition: TauPi0Cluster.h:424
TauShot.h
Analysis::TauPi0Cluster::LONGITUDINAL
float LONGITUDINAL() const
Get LONGITUDINAL.
Analysis::TauPi0Cluster::setSecondEngDens
void setSecondEngDens(float secondEngDens)
Set secondEngDens.
Analysis::TauPi0Cluster::m_firstEtaWRTClusterPosition_EM2
float m_firstEtaWRTClusterPosition_EM2
Definition: TauPi0Cluster.h:435
Analysis::TauPi0Cluster::m_tauShotVector
std::vector< TauShot * > m_tauShotVector
Definition: TauPi0Cluster.h:417
Analysis::TauPi0Cluster::cluster
const CaloCluster * cluster() const
Get cluster Consider using direct access through clusterLink() instead.
Analysis::TauPi0Cluster::firstEtaWRTClusterPosition_EM1
float firstEtaWRTClusterPosition_EM1() const
Get firstEtaWRTClusterPosition_EM1.
Analysis::TauPi0Cluster::setNPosECells_EM1
void setNPosECells_EM1(int NPosECells_EM1)
Set NPosECells_EM1.
Analysis::TauPi0Cluster::NPosECells_PS
int NPosECells_PS() const
Get NPosECells_PS.
Analysis::TauPi0Cluster::setEngFracMAX
void setEngFracMAX(float engFracMAX)
Set engFracMAX.
Analysis::TauPi0Cluster::dump
void dump()
Definition: TauPi0Cluster.cxx:152
Analysis::TauPi0Cluster::m_BDTScore
float m_BDTScore
Definition: TauPi0Cluster.h:438
Analysis::TauPi0Cluster::setExternalVars
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
Analysis::TauPi0Cluster
Definition: TauPi0Cluster.h:28
Analysis::TauPi0Cluster::TauPi0Cluster
TauPi0Cluster()
default constructor
Definition: TauPi0Cluster.cxx:12
Analysis::TauPi0Cluster::setAsymmetryInEM1WRTTrk
void setAsymmetryInEM1WRTTrk(float asymmetryInEM1WRTTrk)
Set asymmetryInEM1WRTTrk.
Analysis::TauPi0Cluster::firstEtaWRTClusterPosition_EM2
float firstEtaWRTClusterPosition_EM2() const
Get firstEtaWRTClusterPosition_EM2.
Analysis::TauShot
Definition: TauShot.h:48
Analysis::TauPi0Cluster::m_NPosECells_EM2
int m_NPosECells_EM2
Definition: TauPi0Cluster.h:433
Analysis::TauPi0Cluster::tauShotVec
std::vector< TauShot * > & tauShotVec()
Get shot vector.
Analysis::TauPi0Cluster::setPi0Cluster
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)
TauPi0Cluster.icc
Analysis::TauPi0Cluster::m_firstEtaWRTClusterPosition_EM1
float m_firstEtaWRTClusterPosition_EM1
Definition: TauPi0Cluster.h:434
CaloCluster
Principal data class for CaloCell clusters.
Definition: Calorimeter/CaloEvent/CaloEvent/CaloCluster.h:79
Analysis::TauPi0Cluster::m_SECOND_ENG_DENS
float m_SECOND_ENG_DENS
Definition: TauPi0Cluster.h:425
Analysis::TauPi0Cluster::m_ENG_FRAC_MAX
float m_ENG_FRAC_MAX
Definition: TauPi0Cluster.h:423
Analysis::TauPi0Cluster::LATERAL
float LATERAL() const
Get LATERAL.
Analysis::TauPi0Cluster::setLATERAL
void setLATERAL(float LATERAL)
Set LATERAL.
Analysis::TauPi0Cluster::setBDTScore
void setBDTScore(float BDTScore)
Set BDTScore.
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::TauPi0Cluster::setSecondEtaWRTClusterPosition_EM2
void setSecondEtaWRTClusterPosition_EM2(float secondEtaWRTClusterPosition_EM2)
Set secondEtaWRTClusterPosition_EM2.
Analysis::TauPi0Cluster::clusterLink
ElementLink< CaloClusterContainer > & clusterLink()
Get cluster link.
Analysis::TauPi0Cluster::m_secondEtaWRTClusterPosition_EM2
float m_secondEtaWRTClusterPosition_EM2
Definition: TauPi0Cluster.h:437
Analysis::TauPi0Cluster::operator==
bool operator==(const TauPi0Cluster &rhs) const
Equality operator.
Definition: TauPi0Cluster.cxx:90
Analysis::TauPi0Cluster::setDeltaTheta
void setDeltaTheta(float deltaTheta)
Set deltaTheta.
Analysis::TauPi0Cluster::setNHitsInEM1
void setNHitsInEM1(int NHitsInEM1)
Set NHitsInEM1.
Analysis::TauPi0Cluster::m_secondEtaWRTClusterPosition_EM1
float m_secondEtaWRTClusterPosition_EM1
Definition: TauPi0Cluster.h:436
Analysis::TauPi0Cluster::setEngFracCore
void setEngFracCore(float engFracCore)
Set engFracCore.
Analysis::TauPi0Cluster::m_DELTA_PHI
float m_DELTA_PHI
cluster external properties
Definition: TauPi0Cluster.h:420
Analysis::TauPi0Cluster::NHitsInEM1
int NHitsInEM1() const
Get NHitsInEM1.
Analysis::TauPi0Cluster::setSecondEtaWRTClusterPosition_EM1
void setSecondEtaWRTClusterPosition_EM1(float secondEtaWRTClusterPosition_EM1)
Set secondEtaWRTClusterPosition_EM1.
Analysis::TauPi0Cluster::m_NPosECells_PS
int m_NPosECells_PS
Definition: TauPi0Cluster.h:431
Analysis::TauPi0Cluster::m_EM1CoreFrac
float m_EM1CoreFrac
Definition: TauPi0Cluster.h:428
Analysis::TauPi0Cluster::operator=
TauPi0Cluster & operator=(const TauPi0Cluster &rhs)
assignment operator
Definition: TauPi0Cluster.cxx:62
Analysis::TauPi0Cluster::tauShotVec
const std::vector< TauShot * > & tauShotVec() const
Get shot vector (const)
Analysis::TauPi0Cluster::m_cluster
ElementLink< CaloClusterContainer > m_cluster
cluster
Definition: TauPi0Cluster.h:414
Analysis::TauPi0Cluster::secondEtaWRTClusterPosition_EM2
float secondEtaWRTClusterPosition_EM2() const
Get secondEtaWRTClusterPosition_EM2.
Analysis::TauPi0Cluster::NPosECells_EM1
int NPosECells_EM1() const
Get NPosECells_EM1.
Analysis::TauPi0Cluster::NPosECells_EM2
int NPosECells_EM2() const
Get NPosECells_EM2.
Analysis::TauPi0Cluster::asymmetryInEM1WRTTrk
float asymmetryInEM1WRTTrk() const
Get asymmetryInEM1WRTTrk.
Analysis::TauPi0Cluster::setFirstEtaWRTClusterPosition_EM2
void setFirstEtaWRTClusterPosition_EM2(float firstEtaWRTClusterPosition_EM2)
Set firstEtaWRTClusterPosition_EM2.
Analysis::TauPi0Cluster::m_ENG_FRAC_EM
float m_ENG_FRAC_EM
Definition: TauPi0Cluster.h:422
Analysis::TauPi0Cluster::secondEngDens
float secondEngDens() const
Get secondEngDens.
Analysis::TauPi0Cluster::engFracMAX
float engFracMAX() const
Get engFracMAX.
Analysis::TauPi0Cluster::m_NPosECells_EM1
int m_NPosECells_EM1
Definition: TauPi0Cluster.h:432
Analysis::TauPi0Cluster::m_NHitsInEM1
int m_NHitsInEM1
Definition: TauPi0Cluster.h:430
Analysis::TauPi0Cluster::m_LONGITUDINAL
float m_LONGITUDINAL
Definition: TauPi0Cluster.h:427
Analysis::TauPi0Cluster::engFracEM
float engFracEM() const
Get engFracEM.
Analysis::TauPi0Cluster::operator!=
bool operator!=(const TauPi0Cluster &rhs) const
Inequality operator.
Definition: TauPi0Cluster.cxx:118
Analysis::TauPi0Cluster::setNPosECells_PS
void setNPosECells_PS(int NPosECells_PS)
Set NPosECells_PS.
Analysis::TauPi0Cluster::setCluster
void setCluster(const CaloCluster *cluster, const CaloClusterContainer *cont)
Set cluster to pi0 cluster vector Consider using direct access through clusterLink() instead.