ATLAS Offline Software
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 
17 #include "tauEvent/TauRecDetails.h"
18 #include "AthenaKernel/ClassName.h"
19 
20 namespace Analysis
21 {
22  //-------------------------------------------------------------------------
23  // Constructor
24  //-------------------------------------------------------------------------
26  m_emRadius( TauDetails::DEFAULT ),
27  m_hadRadius(TauDetails::DEFAULT),
28  m_sumEmCellEt(TauDetails::DEFAULT),
29  m_sumHadCellEt(TauDetails::DEFAULT),
30  m_ET12Frac( TauDetails::DEFAULT ),
31  m_centralityFraction( TauDetails::DEFAULT ),
32  m_stripWidth2( TauDetails::DEFAULT ),
33  m_numStripCells( TauDetails::DEFAULT_INT ),
34  m_ipSigLeadTrack( TauDetails::DEFAULT ),
35  m_etOverPtLeadTrack( TauDetails::DEFAULT ),
36  m_etEMCalib( TauDetails::DEFAULT ),
37  m_etHadCalib( TauDetails::DEFAULT ),
38  m_secVertex( 0 ),
39  m_leadingTrackPT(TauDetails::DEFAULT),
40  m_trFlightPathSig(TauDetails::DEFAULT),
41  m_etaCalo(TauDetails::DEFAULT),
42  m_phiCalo(TauDetails::DEFAULT),
43  m_nTracksdrdR(TauDetails::DEFAULT_INT),
44  m_chargeLooseTracks(TauDetails::DEFAULT_INT)
45  {
46  }
47 
48  //-------------------------------------------------------------------------
49  // Destructor
50  //-------------------------------------------------------------------------
52  {
53  delete m_secVertex;
54  }
55 
56  //-------------------------------------------------------------------------
57  // Copy constructor
58  //-------------------------------------------------------------------------
60  TauDetails(),
61  m_emRadius(rhs.m_emRadius),
62  m_hadRadius(rhs.m_hadRadius),
63  m_sumEmCellEt(rhs.m_sumEmCellEt),
64  m_sumHadCellEt(rhs.m_sumHadCellEt),
65  m_ET12Frac(rhs.m_ET12Frac),
66  m_centralityFraction(rhs.m_centralityFraction),
67  m_stripWidth2(rhs.m_stripWidth2),
68  m_numStripCells(rhs.m_numStripCells),
69  m_ipSigLeadTrack(rhs.m_ipSigLeadTrack),
70  m_etOverPtLeadTrack(rhs.m_etOverPtLeadTrack),
71  m_sumEM(rhs.m_sumEM),
72  m_etEMCalib(rhs.m_etEMCalib),
73  m_etHadCalib(rhs.m_etHadCalib),
74  m_secVertex(new Trk::RecVertex( *rhs.m_secVertex )),
75  m_trackCaloEta(rhs.m_trackCaloEta),
76  m_trackCaloPhi(rhs.m_trackCaloPhi),
77  m_leadingTrackPT(rhs.m_leadingTrackPT),
78  m_trFlightPathSig(rhs.m_trFlightPathSig),
79  m_etaCalo(rhs.m_etaCalo),
80  m_phiCalo(rhs.m_phiCalo),
81  m_nTracksdrdR(rhs.m_nTracksdrdR),
82  m_chargeLooseTracks(rhs.m_chargeLooseTracks)
83  {
84  }
85 
86  //-------------------------------------------------------------------------
87  // Assignment operator
88  //-------------------------------------------------------------------------
90  {
91  if( this != &rhs )
92  {
93  delete m_secVertex;
104  m_sumEM=rhs.m_sumEM;
107  if (rhs.m_secVertex)
108  m_secVertex=new Trk :: RecVertex( *rhs.m_secVertex );
113  m_etaCalo=rhs.m_etaCalo;
114  m_phiCalo=rhs.m_phiCalo;
117  }
118  return *this;
119  }
120 
121 
122  //-------------------------------------------------------------------------
123  // Get parameter
124  //-------------------------------------------------------------------------
126  {
127  switch( detail )
128  {
130  return etHadCalib();
132  return etEMCalib();
134  return emRadius();
136  return isolationFraction();
138  return centralityFraction();
140  return stripWidth2();
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  //-------------------------------------------------------------------------
153  {
154  switch( detail )
155  {
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 }
Analysis::TauRecDetails::s_className
static const std::string s_className
Definition: TauRecDetails.h:242
Analysis::TauRecDetails::m_secVertex
Trk ::RecVertex * m_secVertex
Definition: TauRecDetails.h:274
Analysis::TauRecDetails::m_etEMCalib
double m_etEMCalib
Definition: TauRecDetails.h:268
Analysis::TauRecDetails::m_chargeLooseTracks
int m_chargeLooseTracks
Charge of loose tracks.
Definition: TauRecDetails.h:295
Analysis::TauRecDetails
DEPRECATED DO NOT USE - MIGRATE TO TauCommonDetails Basic details class containing information produc...
Definition: TauRecDetails.h:36
TauJetParameters::etEMCalib
@ etEMCalib
Definition: TauJetParameters.h:148
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
Analysis::TauRecDetails::m_ET12Frac
double m_ET12Frac
Definition: TauRecDetails.h:253
Analysis::TauRecDetails::m_leadingTrackPT
double m_leadingTrackPT
Definition: TauRecDetails.h:282
Analysis::TauDetails::DEFAULT
static const float DEFAULT
Definition: TauDetails.h:34
Analysis::TauRecDetails::m_trackCaloEta
std::vector< double > m_trackCaloEta
Definition: TauRecDetails.h:279
Analysis::TauRecDetails::m_stripWidth2
double m_stripWidth2
Definition: TauRecDetails.h:255
detail
Definition: extract_histogram_tag.cxx:14
Analysis::TauRecDetails::m_ipSigLeadTrack
double m_ipSigLeadTrack
Definition: TauRecDetails.h:257
Analysis::TauRecDetails::m_sumHadCellEt
double m_sumHadCellEt
Definition: TauRecDetails.h:252
Analysis::TauRecDetails::m_etaCalo
double m_etaCalo
Definition: TauRecDetails.h:285
TauJetParameters::centralityFraction
@ centralityFraction
Definition: TauJetParameters.h:151
Analysis::TauDetails
Definition: TauDetails.h:26
TauJetParameters::isolationFraction
@ isolationFraction
Definition: TauJetParameters.h:150
xAOD::TauJetParameters::stripWidth2
@ stripWidth2
Get strip width ^2.
Definition: TauDefs.h:202
Analysis::TauRecDetails::hasParameter
virtual bool hasParameter(TauJetParameters ::Detail detail) const
backward compatibility accessor (do not use)
Definition: TauRecDetails.cxx:152
Analysis::TauRecDetails::numStripCells
int numStripCells() const
Number of Strip cells within dR < 0.4, with energy above specified threshold.
Definition: TauRecDetails.h:371
Analysis::TauRecDetails::~TauRecDetails
virtual ~TauRecDetails()
Destructor.
Definition: TauRecDetails.cxx:51
Analysis::TauRecDetails::m_phiCalo
double m_phiCalo
Definition: TauRecDetails.h:286
Analysis::TauRecDetails::m_nTracksdrdR
int m_nTracksdrdR
Definition: TauRecDetails.h:292
ClassName.h
An interface for getting the name of a class as a string.
Analysis::TauRecDetails::TauRecDetails
TauRecDetails()
Constructor.
Definition: TauRecDetails.cxx:25
Analysis::TauRecDetails::m_centralityFraction
double m_centralityFraction
Definition: TauRecDetails.h:254
Analysis::TauRecDetails::stripWidth2
double stripWidth2() const
Uncalibrated transverse energy weighted width in the strip layer within dR < 0.4.
Definition: TauRecDetails.h:361
Analysis::TauRecDetails::centralityFraction
double centralityFraction() const
Centrality fraction (ET(dr<0.1)/ET(dr<0.4) for all calos.
Definition: TauRecDetails.h:351
ClassName::name
static std::string name()
Return the name of class T as a string.
TauJetParameters::etHadCalib
@ etHadCalib
Definition: TauJetParameters.h:147
Analysis::TauRecDetails::m_sumEmCellEt
double m_sumEmCellEt
Definition: TauRecDetails.h:251
Analysis::TauRecDetails::m_emRadius
double m_emRadius
Definition: TauRecDetails.h:249
TauJetParameters::emRadius
@ emRadius
Definition: TauJetParameters.h:149
Analysis::TauRecDetails::m_numStripCells
int m_numStripCells
Definition: TauRecDetails.h:256
Analysis::TauRecDetails::parameter
virtual double parameter(TauJetParameters ::Detail detail) const
backward compatibility accessor (do not use)
Definition: TauRecDetails.cxx:125
Analysis::TauRecDetails::operator=
TauRecDetails & operator=(const TauRecDetails &rhs)
Assignment Operator.
Definition: TauRecDetails.cxx:89
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
xAOD::DiTauJetParameters::Detail
Detail
Definition: DiTauDefs.h:38
TauRecDetails.h
Analysis::TauRecDetails::etEMCalib
double etEMCalib() const
Calibrated EM transverse energy, EM is Presampler + EM1 + EM2.
Definition: TauRecDetails.h:439
Analysis::TauRecDetails::etHadCalib
double etHadCalib() const
Calibrated HAD transverse energy, HAD is cryo + EM3 + TILE1 + TILE2 + TILE3.
Definition: TauRecDetails.h:449
Analysis::TauRecDetails::m_etOverPtLeadTrack
double m_etOverPtLeadTrack
Definition: TauRecDetails.h:258
Analysis::TauRecDetails::m_trackCaloPhi
std::vector< double > m_trackCaloPhi
Definition: TauRecDetails.h:280
Analysis::TauRecDetails::emRadius
double emRadius() const
Uncalibrated Et weighted radius in the Presampler + EM1 + EM2 within dR < 0.4.
Definition: TauRecDetails.h:301
Analysis::TauRecDetails::className
virtual const std::string & className() const
Definition: TauRecDetails.cxx:172
Analysis::TauRecDetails::m_etHadCalib
double m_etHadCalib
Definition: TauRecDetails.h:269
TauJetParameters::nStripCells
@ nStripCells
Definition: TauJetParameters.h:153
Analysis::TauRecDetails::isolationFraction
double isolationFraction() const
Ratio of the uncalibrated transverse energy of cells within 0.1<dR<0.2 and cells within 0<dR<0....
Definition: TauRecDetails.h:341
Analysis::TauRecDetails::m_trFlightPathSig
double m_trFlightPathSig
Definition: TauRecDetails.h:283
Analysis::TauRecDetails::m_sumEM
CLHEP::HepLorentzVector m_sumEM
Definition: TauRecDetails.h:263
Analysis::TauRecDetails::m_hadRadius
double m_hadRadius
Definition: TauRecDetails.h:250