ATLAS Offline Software
Loading...
Searching...
No Matches
TauRecDetails.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
16
19
20namespace Analysis
21{
22 //-------------------------------------------------------------------------
23 // Constructor
24 //-------------------------------------------------------------------------
47
48 //-------------------------------------------------------------------------
49 // Destructor
50 //-------------------------------------------------------------------------
51 TauRecDetails :: ~TauRecDetails()
52 {
53 delete m_secVertex;
54 }
55
56 //-------------------------------------------------------------------------
57 // Copy constructor
58 //-------------------------------------------------------------------------
85
86 //-------------------------------------------------------------------------
87 // Assignment operator
88 //-------------------------------------------------------------------------
120
121
122 //-------------------------------------------------------------------------
123 // Get parameter
124 //-------------------------------------------------------------------------
125 double TauRecDetails :: parameter( TauJetParameters :: Detail detail ) const
126 {
127 switch( detail )
128 {
129 case TauJetParameters :: etHadCalib:
130 return etHadCalib();
131 case TauJetParameters :: etEMCalib:
132 return etEMCalib();
133 case TauJetParameters :: emRadius:
134 return emRadius();
135 case TauJetParameters :: isolationFraction:
136 return isolationFraction();
137 case TauJetParameters :: centralityFraction:
138 return centralityFraction();
139 case TauJetParameters :: stripWidth2:
140 return stripWidth2();
141 case TauJetParameters :: nStripCells:
142 return (double)numStripCells();
143 default:
144 return TauDetails::DEFAULT;
145 }
146 return TauDetails::DEFAULT;
147 }
148
149 //-------------------------------------------------------------------------
150 // Check if the object contains given parameter
151 //-------------------------------------------------------------------------
152 bool TauRecDetails :: hasParameter( TauJetParameters :: Detail detail ) const
153 {
154 switch( detail )
155 {
156 case TauJetParameters :: etHadCalib:
157 case TauJetParameters :: etEMCalib:
158 case TauJetParameters :: emRadius:
159 case TauJetParameters :: isolationFraction:
160 case TauJetParameters :: centralityFraction:
161 case TauJetParameters :: stripWidth2:
162 case TauJetParameters :: nStripCells:
163 return true;
164 default:
165 return false;
166 }
167 return false;
168 }
169
170 const std::string TauRecDetails::s_className =
172 const std::string& TauRecDetails::className() const
173 {
174 return s_className;
175 }
176}
An interface for getting the name of a class as a string.
DEPRECATED DO NOT USE.
static const int DEFAULT_INT
Definition TauDetails.h:35
static const float DEFAULT
Definition TauDetails.h:34
TauDetails()
Default constructor.
static const std::string s_className
double emRadius() const
Uncalibrated Et weighted radius in the Presampler + EM1 + EM2 within dR < 0.4.
double isolationFraction() const
Ratio of the uncalibrated transverse energy of cells within 0.1<dR<0.2 and cells within 0<dR<0....
double etHadCalib() const
Calibrated HAD transverse energy, HAD is cryo + EM3 + TILE1 + TILE2 + TILE3.
std::vector< double > m_trackCaloPhi
double centralityFraction() const
Centrality fraction (ET(dr<0.1)/ET(dr<0.4) for all calos.
std::vector< double > m_trackCaloEta
int m_chargeLooseTracks
Charge of loose tracks.
Trk::RecVertex * m_secVertex
virtual const std::string & className() const
double stripWidth2() const
Uncalibrated transverse energy weighted width in the strip layer within dR < 0.4.
double etEMCalib() const
Calibrated EM transverse energy, EM is Presampler + EM1 + EM2.
int numStripCells() const
Number of Strip cells within dR < 0.4, with energy above specified threshold.
CLHEP::HepLorentzVector m_sumEM
static std::string name()
Return the name of class T as a string.
The namespace of all packages in PhysicsAnalysis/JetTagging.
Ensure that the ATLAS eigen extensions are properly loaded.