ATLAS Offline Software
Loading...
Searching...
No Matches
TauCommonExtraDetails.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
14
15//TauEvent includes
16#include "tauEvent/TauCmp.h"
18//Other includes
21#include "AthLinks/ElementLink.h"
22//C/C++ includes
23#include <string>
24#include <vector>
25
26namespace Analysis {
27
28 //Default constructor
29 //Initializes members to default values where applicable
30 TauCommonExtraDetails :: TauCommonExtraDetails():
31 TauDetails(),
32 //Applicable for track & calo seeded tau reconstruction
34 m_sumPtTrk(),
35 //Applicable for calo seeded tau reconstruction
41 {
43 }
44
45 //Copy constructor
68
69 //Destructor
70 TauCommonExtraDetails :: ~TauCommonExtraDetails()
71 {
72 }
73
74 //Assignment operator
99
101 const TauCommonExtraDetails& rhs ) const
102 {
103 //Double comparisons
105 return false;
107 return false;
109 return false;
111 return false;
113 return false;
116 return false;
117 //Interger comparisons
118 if ( m_seedCalo_nEMCell != rhs.m_seedCalo_nEMCell) return false;
119 //Vector vector double comparisons
121 return false;
123 return false;
125 return false;
127 return false;
128 //Vector vector Element links
130 return false;
132 return false;
134 return false;
136 return false;
137 return true;
138 }
139
141 const unsigned int tracks,
142 const unsigned int samplings )
143 {
144 if ( tracks == 0 || samplings == 0 )
145 return;
146 std::vector<ElementLink<CaloCellContainer> > initEL( samplings );
148 m_closestEtaTrkVertCell.resize( tracks, initEL );
149 m_closestEtaTrkCell.clear();
150 m_closestEtaTrkCell.resize( tracks, initEL );
152 m_closestPhiTrkVertCell.resize( tracks, initEL );
153 m_closestPhiTrkCell.clear();
154 m_closestPhiTrkCell.resize( tracks, initEL );
155 std::vector<double> initD( samplings, TauDetails::DEFAULT );
156 m_etaTrkCaloSamp.clear();
157 m_etaTrkCaloSamp.resize( tracks, initD );
158 m_phiTrkCaloSamp.clear();
159 m_phiTrkCaloSamp.resize( tracks, initD );
160 m_etaLooseTrkCaloSamp.clear();
161 m_etaLooseTrkCaloSamp.resize( tracks, initD );
162 m_phiLooseTrkCaloSamp.clear();
163 m_phiLooseTrkCaloSamp.resize( tracks, initD );
164 }
165
166 //Class name
167 const std::string TauCommonExtraDetails::s_className =
169
170 const std::string& TauCommonExtraDetails::className() const
171 {
172 return s_className;
173 }
174
175} //Namespace analysis
An interface for getting the name of a class as a string.
Declaration of Tau comparison predicates.
Declaration of extra details class for tau event.
double m_seedCalo_stripEt
Uncalibrated sum of ET in the strip layer within dR < 0.4.
double m_seedCalo_EMCentFrac
EM Centrality Fraction (ET(dr<0.1)/ET(dr<0.4) for EM calos only.
std::vector< std::vector< double > > m_etaTrkCaloSamp
Eta of extrapolation point in EM Calo.
virtual const std::string & className() const
Get name of class.
std::vector< std::vector< ElementLink< CaloCellContainer > > > m_closestEtaTrkVertCell
Closest cell to track position at vertex in eta.
double m_seedCalo_sumEMCellEnergy
Energy sum of all em cells within dR < 0.4 (Presampler + EM1 + EM2)
std::vector< std::vector< ElementLink< CaloCellContainer > > > m_closestEtaTrkCell
Closest cell to track position from extrapolation in eta.
bool operator==(const TauCommonExtraDetails &rhs) const
Equality operator.
int m_seedCalo_nEMCell
Number of EM cells within dR < 0.4, with E > m_cellEthr.
double m_sumPtLooseTrk
Sum of p_T for loose tracks.
void allocTracksAndSamplings(unsigned int tracks, unsigned int samplings)
Allocate data structures for given number of tracks and samplings.
std::vector< std::vector< double > > m_phiLooseTrkCaloSamp
Phi of extrapolation point in EM Calo.
std::vector< std::vector< ElementLink< CaloCellContainer > > > m_closestPhiTrkVertCell
Closest cell to track position at vertex in phi.
std::vector< std::vector< double > > m_phiTrkCaloSamp
Phi of extrapolation point in EM Calo.
double m_sumPtTrk
Sum of p_T for tracks.
static const std::string s_className
Name of class.
double m_seedCalo_sumCellEnergy
Energy sum of all cells within dR < 0.4.
std::vector< std::vector< double > > m_etaLooseTrkCaloSamp
Eta of extrapolation point in EM Calo.
std::vector< std::vector< ElementLink< CaloCellContainer > > > m_closestPhiTrkCell
Closest cell to track position from extrapolation in phi.
static const float DEFAULT
Definition TauDetails.h:34
TauDetails()
Default constructor.
static std::string name()
Return the name of class T as a string.
bool vvcmp(const std::vector< std::vector< T > > &a, const std::vector< std::vector< T > > &b)
Compare vectors using vcmp predicate.
Definition TauCmp.h:46
bool cmp(const double &a, const double &b)
Definition TauCmp.cxx:34
The namespace of all packages in PhysicsAnalysis/JetTagging.