ATLAS Offline Software
TauRecExtraDetails.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
18 
19 #ifndef TAU_REC_EXTRA_DETAILS_ANALYSIS_H
20 #define TAU_REC_EXTRA_DETAILS_ANALYSIS_H
21 
22 #include "tauEvent/TauDetails.h"
24 
25 
26 
27 namespace Analysis
28 {
29  //-------------------------------------------------------------------------
33  //-------------------------------------------------------------------------
35  {
36  friend class TauJet;
38  public:
39  //-----------------------------------------------------------------
40  // Constructors and destructor
41  //-----------------------------------------------------------------
49  virtual ~TauRecExtraDetails();
50  virtual const std::string& className() const;
51 
52  //-----------------------------------------------------------------
56  //-----------------------------------------------------------------
58  void setAnalysisHelper( tauAnalysisHelperObject *anahelper );
59 
60  //-----------------------------------------------------------------
62  //-----------------------------------------------------------------
63  int numEMCells() const;
64  void setNumEMCells( int numEMCells );
65 
66  //-----------------------------------------------------------------
68  //-----------------------------------------------------------------
69  double stripET() const;
70  void setStripET( double stripET );
71 
72  //-----------------------------------------------------------------
74  //-----------------------------------------------------------------
75  double emCentralityFraction() const;
77 
78  //-----------------------------------------------------------------
80  //-----------------------------------------------------------------
81  double etHadAtEMScale();
82  void setETHadAtEMScale( double etHadAtEMScale );
83 
84  //-----------------------------------------------------------------
86  //-----------------------------------------------------------------
87  double etEMAtEMScale();
88  void setETEMAtEMScale( double etEMAtEMScale );
89 
90  //-----------------------------------------------------------------
92  //-----------------------------------------------------------------
93  double energy() const;
94  void setEnergy( double energy );
95 
96  //-----------------------------------------------------------------
99  //-----------------------------------------------------------------
100  double emEnergy() const;
101  void setEMEnergy( double emEnergy );
102 
103  //-----------------------------------------------------------------
105  //-----------------------------------------------------------------
106  double sumPTTracks();
107  void setSumPTTracks( double sumPTTracks );
108 
109 
110  //-----------------------------------------------------------------
112  //-----------------------------------------------------------------
115 
116  private:
117  static const std::string s_className;
120 
121  //-----------------------------------------------------------------
122  // Identification variables
123  //-----------------------------------------------------------------
125  double m_stripET;
127 
128  //-----------------------------------------------------------------
129  // Energy at the EM scale
130  //-----------------------------------------------------------------
133  double m_sumCellE;
134  double m_sumEMCellE;
136  };
137 
138  //-------------------------------------------------------------------------
139  // Implementation of accessors
140  //-------------------------------------------------------------------------
142  {
143  return m_analysisHelper;
144  }
145 
147  {
148  delete m_analysisHelper;
149  m_analysisHelper = anahelper;
150  }
151 
153  {
154  return m_numEMCells;
155  }
156 
157  inline void TauRecExtraDetails :: setNumEMCells( int numEMCells )
158  {
160  }
161 
162  inline double TauRecExtraDetails :: stripET() const
163  {
164  return m_stripET;
165  }
166 
167  inline void TauRecExtraDetails :: setStripET( double stripET )
168  {
169  m_stripET = stripET;
170  }
171 
173  {
174  return m_emCentralityFraction;
175  }
176 
177  inline void TauRecExtraDetails :: setEMCentralityFraction( double emCentralityFraction )
178  {
180  }
181 
183  {
184  return m_etHadAtEMScale;
185  }
186 
188  {
190  }
191 
193  {
194  return m_etEMAtEMScale;
195  }
196 
198  {
200  }
201 
202  inline double TauRecExtraDetails :: energy() const
203  {
204  return m_sumCellE;
205  }
206 
208  {
209  m_sumCellE = energy;
210  }
211 
212  inline double TauRecExtraDetails :: emEnergy() const
213  {
214  return m_sumEMCellE;
215  }
216 
217  inline void TauRecExtraDetails :: setEMEnergy( double emEnergy )
218  {
220  }
221 
223  {
224  return m_sumPTTracks;
225  }
226 
227  inline void TauRecExtraDetails :: setSumPTTracks( double sumPTTracks )
228  {
230  }
231 
233  {
234  return m_seedType;
235  }
236 
238  {
239  m_seedType = type;
240  }
241 }
242 
243 #endif // TAU_REC_EXTRA_DETAILS_ANALYSIS_H
Analysis::TauRecExtraDetails::m_numEMCells
int m_numEMCells
Definition: TauRecExtraDetails.h:124
Analysis::TauRecExtraDetails::s_className
static const std::string s_className
Definition: TauRecExtraDetails.h:117
Analysis::TauRecExtraDetails::setEMEnergy
void setEMEnergy(double emEnergy)
Definition: TauRecExtraDetails.h:217
Analysis::TauRecExtraDetails::m_emCentralityFraction
double m_emCentralityFraction
Definition: TauRecExtraDetails.h:126
Analysis::TauRecExtraDetails::energy
double energy() const
Energy sum of all cells within dR < 0.4.
Definition: TauRecExtraDetails.h:202
Analysis::TauRecExtraDetails::m_sumPTTracks
double m_sumPTTracks
Definition: TauRecExtraDetails.h:135
Analysis::TauRecExtraDetails::m_etEMAtEMScale
double m_etEMAtEMScale
Definition: TauRecExtraDetails.h:132
Analysis::TauRecExtraDetails::emCentralityFraction
double emCentralityFraction() const
EM Centrality Fraction (ET(dr<0.1)/ET(dr<0.4) for EM calos only.
Definition: TauRecExtraDetails.h:172
Analysis::TauRecExtraDetails::etHadAtEMScale
double etHadAtEMScale()
Hadronic energy at the EM scale (unused)
Definition: TauRecExtraDetails.h:182
Analysis::TauRecExtraDetails::~TauRecExtraDetails
virtual ~TauRecExtraDetails()
Destructor.
Definition: TauRecExtraDetails.cxx:71
Analysis::TauRecExtraDetails::sumPTTracks
double sumPTTracks()
Sum of PT of tracks.
Definition: TauRecExtraDetails.h:222
Analysis::TauRecExtraDetails::analysisHelper
tauAnalysisHelperObject * analysisHelper() const
Analysis Helper - this object is filled by tauAnalysisHelper and contains some useful information for...
Definition: TauRecExtraDetails.h:141
Analysis::TauRecExtraDetails::m_etHadAtEMScale
double m_etHadAtEMScale
Definition: TauRecExtraDetails.h:131
Analysis::TauRecExtraDetails::m_sumEMCellE
double m_sumEMCellE
Definition: TauRecExtraDetails.h:134
TauDetails.h
Analysis::TauDetails
Definition: TauDetails.h:26
Analysis::TauRecExtraDetails
DEPRECATED DO NOT USE - MIGRATE TO TauCommonDetails Extended details class containing information pro...
Definition: TauRecExtraDetails.h:35
Analysis::TauRecExtraDetails::setEMCentralityFraction
void setEMCentralityFraction(double emCentralityFraction)
Definition: TauRecExtraDetails.h:177
Analysis::TauRecExtraDetails::numEMCells
int numEMCells() const
Number of EM cells within dR < 0.4, with E > m_cellEthr.
Definition: TauRecExtraDetails.h:152
Analysis::TauRecExtraDetails::m_seedType
TauJetParameters ::SeedTypes m_seedType
Definition: TauRecExtraDetails.h:119
xAOD::TauJetParameters::etHadAtEMScale
@ etHadAtEMScale
Get Hadronic energy at EM scale.
Definition: TauDefs.h:196
TauJetParameters::SeedTypes
SeedTypes
Enum for tau seed type.
Definition: TauJetParameters.h:181
Analysis::TauRecExtraDetails::setAnalysisHelper
void setAnalysisHelper(tauAnalysisHelperObject *anahelper)
Definition: TauRecExtraDetails.h:146
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
Analysis::TauRecExtraDetails::stripET
double stripET() const
Uncalibrated sum of ET in the strip layer within dR < 0.4.
Definition: TauRecExtraDetails.h:162
tauAnalysisHelperObject
DEPRECATED DO NOT USE - MIGRATE TO TauCommonDetails.
Definition: tauAnalysisHelperObject.h:46
Analysis::TauJet
Object for taus common for ESD and AOD.
Definition: Reconstruction/tauEvent/tauEvent/TauJet.h:61
Analysis::TauRecExtraDetails::setSumPTTracks
void setSumPTTracks(double sumPTTracks)
Definition: TauRecExtraDetails.h:227
Analysis::TauRecExtraDetails::setETEMAtEMScale
void setETEMAtEMScale(double etEMAtEMScale)
Definition: TauRecExtraDetails.h:197
TauRecExtraDetailsCnv_p1
Legacy converter.
Definition: TauRecExtraDetailsCnv_p1.h:36
Analysis::TauRecExtraDetails::setETHadAtEMScale
void setETHadAtEMScale(double etHadAtEMScale)
Definition: TauRecExtraDetails.h:187
Analysis::TauRecExtraDetails::className
virtual const std::string & className() const
Definition: TauRecExtraDetails.cxx:78
Analysis::TauRecExtraDetails::etEMAtEMScale
double etEMAtEMScale()
Electromagnetic energy at the EM scale (unused)
Definition: TauRecExtraDetails.h:192
Analysis::TauRecExtraDetails::setEnergy
void setEnergy(double energy)
Definition: TauRecExtraDetails.h:207
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
tauAnalysisHelperObject.h
Analysis::TauRecExtraDetails::m_analysisHelper
tauAnalysisHelperObject * m_analysisHelper
Definition: TauRecExtraDetails.h:118
Analysis::TauRecExtraDetails::operator=
TauRecExtraDetails & operator=(const TauRecExtraDetails &rhs)
assignment operator
Definition: TauRecExtraDetails.cxx:53
Analysis::TauRecExtraDetails::m_sumCellE
double m_sumCellE
Definition: TauRecExtraDetails.h:133
Analysis::TauRecExtraDetails::setSeedType
void setSeedType(TauJetParameters ::SeedTypes type)
Definition: TauRecExtraDetails.h:237
Analysis::TauRecExtraDetails::seedType
TauJetParameters ::SeedTypes seedType()
The type of the seed.
Definition: TauRecExtraDetails.h:232
Analysis::TauRecExtraDetails::m_stripET
double m_stripET
Definition: TauRecExtraDetails.h:125
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
Analysis::TauRecExtraDetails::TauRecExtraDetails
TauRecExtraDetails()
Default Constructor.
Definition: TauRecExtraDetails.cxx:24
Analysis::TauRecExtraDetails::setNumEMCells
void setNumEMCells(int numEMCells)
Definition: TauRecExtraDetails.h:157
Analysis::TauRecExtraDetails::setStripET
void setStripET(double stripET)
Definition: TauRecExtraDetails.h:167
Analysis::TauRecExtraDetails::emEnergy
double emEnergy() const
Energy sum of all em cells within dR < 0.4 (Presampler + EM1 + EM2)
Definition: TauRecExtraDetails.h:212
xAOD::TauJetParameters::etEMAtEMScale
@ etEMAtEMScale
Get EM energy at EM scale.
Definition: TauDefs.h:194