ATLAS Offline Software
Loading...
Searching...
No Matches
xAODMaker::TauJetCnvTool Class Reference

#include <TauJetCnvTool.h>

Inheritance diagram for xAODMaker::TauJetCnvTool:
Collaboration diagram for xAODMaker::TauJetCnvTool:

Public Member Functions

 TauJetCnvTool (const std::string &type, const std::string &name, const IInterface *parent)
 Constructor with parameters:
virtual ~TauJetCnvTool () override
 Destructor:
virtual StatusCode initialize () override
virtual StatusCode convert (const Analysis::TauJetContainer *inputTaus, xAOD::TauJetContainer *xaodTauJets) const override
 Function that fills an existing xAOD::TauJetContainer.
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Static Public Member Functions

static const InterfaceID & interfaceID ()
 Gaudi interface definition.

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

 TauJetCnvTool ()
 Default constructor:
void setLinks (const Analysis::TauJet &aodtau, xAOD::TauJet &xaodtau) const
ElementLink< xAOD::TrackParticleContainergetNewTrackLink (const ElementLink< Rec::TrackParticleContainer > &oldLink, const std::string &name) const
ElementLink< xAOD::JetContainergetNewJetLink (const ElementLink< JetCollection > &oldLink, const std::string &name) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

Gaudi::Property< std::string > m_inDetTrackParticles {this, "TrackContainerName", "InDetTrackParticles"}
 Containers.
Gaudi::Property< std::string > m_jets {this, "JetContainerName", "AntiKt4LCTopoJets"}
 Location/Key for jets.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 38 of file TauJetCnvTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TauJetCnvTool() [1/2]

xAODMaker::TauJetCnvTool::TauJetCnvTool ( const std::string & type,
const std::string & name,
const IInterface * parent )

Constructor with parameters:

Definition at line 30 of file TauJetCnvTool.cxx.

32 :
33 ::AthAlgTool( type, name, parent )
34 {
35 declareInterface< ITauJetCnvTool > (this);
36 }
AthAlgTool()
Default constructor:

◆ ~TauJetCnvTool()

xAODMaker::TauJetCnvTool::~TauJetCnvTool ( )
overridevirtual

Destructor:

Definition at line 40 of file TauJetCnvTool.cxx.

41 {}

◆ TauJetCnvTool() [2/2]

xAODMaker::TauJetCnvTool::TauJetCnvTool ( )
private

Default constructor:

Member Function Documentation

◆ convert()

StatusCode xAODMaker::TauJetCnvTool::convert ( const Analysis::TauJetContainer * inputTaus,
xAOD::TauJetContainer * xAODTauJets ) const
overridevirtual

Function that fills an existing xAOD::TauJetContainer.

Implements xAODMaker::ITauJetCnvTool.

Definition at line 52 of file TauJetCnvTool.cxx.

53 {
56
57 for( ; it!= itE; ++it)
58 {
59 const Analysis::TauJet * tau = *it;
60
61 ATH_MSG_DEBUG( "trying to convert tau with pt="<< tau->pt() << " eta=" << tau->eta() << " phi=" << tau->phi() << " m=" << tau->m() );
62
63 xAOD::TauJet* xtaujet = new xAOD::TauJet();
64 xaodTauJets->push_back( xtaujet );
65
66 xtaujet->setP4( tau->pt(), tau->eta(), tau->phi(), tau->m() );
67
68 ATH_MSG_DEBUG( "converted xtau with pt="<< xtaujet->pt() << " eta=" << xtaujet->eta() << " phi=" << xtaujet->phi() << " m=" << xtaujet->m() );
69
70 ATH_MSG_DEBUG( "trying to convert tau jetseed 4-vector with pt="<< tau->getHLV(TauJetParameters::JetSeed).perp() << " eta=" << tau->getHLV(TauJetParameters::JetSeed).eta() << " phi=" << tau->getHLV(TauJetParameters::JetSeed).phi() << " m=" << tau->getHLV(TauJetParameters::JetSeed).m() );
71
72
74
75 ATH_MSG_DEBUG( "converted xtau jetseed 4-vector with pt="<< xtaujet->ptJetSeed() << " eta=" << xtaujet->etaJetSeed() << " phi=" << xtaujet->phiJetSeed() << " m=" << xtaujet->mJetSeed() );
76
77 ATH_MSG_DEBUG( "trying to convert tau detectoraxis 4-vector with pt="<< tau->getHLV(TauJetParameters::DetectorAxis).perp() << " eta=" << tau->getHLV(TauJetParameters::DetectorAxis).eta() << " phi=" << tau->getHLV(TauJetParameters::DetectorAxis).phi() << " m=" << tau->getHLV(TauJetParameters::DetectorAxis).m() );
78
80
81 ATH_MSG_DEBUG( "converted xtau detectoraxis 4-vector with pt="<< xtaujet->ptDetectorAxis() << " eta=" << xtaujet->etaDetectorAxis() << " phi=" << xtaujet->phiDetectorAxis() << " m=" << xtaujet->mDetectorAxis() );
82
83
84 ATH_MSG_DEBUG( "trying to convert tau intermediateaxis 4-vector with pt="<< tau->getHLV(TauJetParameters::IntermediateAxis).perp() << " eta=" << tau->getHLV(TauJetParameters::IntermediateAxis).eta() << " phi=" << tau->getHLV(TauJetParameters::IntermediateAxis).phi() << " m=" << tau->getHLV(TauJetParameters::IntermediateAxis).m() );
85
87
88 ATH_MSG_DEBUG( "converted xtau intermediateaxis 4-vector with pt="<< xtaujet->ptIntermediateAxis() << " eta=" << xtaujet->etaIntermediateAxis() << " phi=" << xtaujet->phiIntermediateAxis() << " m=" << xtaujet->mIntermediateAxis() );
89
90
91 ATH_MSG_DEBUG( "trying to convert tau tauenergyscale 4-vector with pt="<< tau->getHLV(TauJetParameters::TauEnergyScale).perp() << " eta=" << tau->getHLV(TauJetParameters::TauEnergyScale).eta() << " phi=" << tau->getHLV(TauJetParameters::TauEnergyScale).phi() << " m=" << tau->getHLV(TauJetParameters::TauEnergyScale).m() );
92
94
95 ATH_MSG_DEBUG( "converted xtau tauenergyscale 4-vector with pt="<< xtaujet->ptTauEnergyScale() << " eta=" << xtaujet->etaTauEnergyScale() << " phi=" << xtaujet->phiTauEnergyScale() << " m=" << xtaujet->mTauEnergyScale() );
96
97 ATH_MSG_DEBUG( "trying to convert tau intermediateaxis 4-vector with pt="<< tau->getHLV(TauJetParameters::TauEtaCalib).perp() << " eta=" << tau->getHLV(TauJetParameters::TauEtaCalib).eta() << " phi=" << tau->getHLV(TauJetParameters::TauEtaCalib).phi() << " m=" << tau->getHLV(TauJetParameters::TauEtaCalib).m() );
98
100
101 ATH_MSG_DEBUG( "converted xtau intermediateaxis 4-vector with pt="<< xtaujet->ptTauEtaCalib() << " eta=" << xtaujet->etaTauEtaCalib() << " phi=" << xtaujet->phiTauEtaCalib() << " m=" << xtaujet->mTauEtaCalib() );
102
103 //trying to set element links
104 ATH_MSG_DEBUG( "trying to set element links for tau with numTrack=" << tau->numTrack() );
105
106 ATH_MSG_DEBUG( "converted xaod tau with numTrack=" << xtaujet->nTracks() );
107
108
109 ATH_MSG_DEBUG( "trying to convert tau with ROIWord=" << tau->ROIWord() );
110 xtaujet->setROIWord( tau->ROIWord());
111 ATH_MSG_DEBUG( "converted xaod tau with ROIWord=" << xtaujet->ROIWord() );
112
113 ATH_MSG_DEBUG( "trying to convert tau with charge=" << tau->charge() );
114 xtaujet->setCharge( tau->charge() );
115 ATH_MSG_DEBUG( "converted xaod tau with charge=" << xtaujet->charge() );
116
117 //set PID variables
118
119 ATH_MSG_DEBUG( "trying to convert tau with BDTElescore=" << tau->tauID()->discriminant(TauJetParameters::BDTEleScore) );
121 ATH_MSG_DEBUG( "converted xaod tau with BDTEleScore=" << xtaujet->discriminant(xAOD::TauJetParameters::BDTEleScore ) );
122
125
126 ATH_MSG_DEBUG( "trying to convert tau with MuonVeto=" << tau->tauID()->isTau(TauJetParameters::MuonVeto) );
128
135
136 ATH_MSG_DEBUG( "set individual details variables" );
137
138 //set individual details variables
139
140 const Analysis::TauCommonDetails* commonDetails(tau->details<Analysis::TauCommonDetails>());
141 if(commonDetails != nullptr)
142 {
143 int tempint = 0;
144
145 ATH_MSG_DEBUG( "tau with nCharged " << tau->numTrack() );
146 xtaujet->setDetail(xAOD::TauJetParameters::nCharged , static_cast<int>( tau->numTrack() ) );
147 if( xtaujet->detail( xAOD::TauJetParameters::nCharged, tempint ) )
148 ATH_MSG_DEBUG( "converted xaod tau with nPi0 " << tempint );
149
150
151 ATH_MSG_DEBUG( "tau with pi0ConeDR " << commonDetails->Pi0ConeDR() );
152 xtaujet->setPi0ConeDR( commonDetails->Pi0ConeDR() );
153 ATH_MSG_DEBUG( "converted xaod tau with pi0ConeDR " << xtaujet->pi0ConeDR() );
154
155 ATH_MSG_DEBUG( "tau with trackFilterProngs " << commonDetails->TrackFilterProngs() );
156 xtaujet->setTrackFilterProngs( commonDetails->TrackFilterProngs() );
157 ATH_MSG_DEBUG( "converted xaod tau with trackFilterProngs " << xtaujet->trackFilterProngs() );
158
159 ATH_MSG_DEBUG( "tau with trackFilterQuality " << commonDetails->TrackFilterQuality() );
160 xtaujet->setTrackFilterQuality( commonDetails->TrackFilterQuality() );
161 ATH_MSG_DEBUG( "converted xaod tau with trackFilterQuality " << xtaujet->trackFilterQuality() );
162
163 ATH_MSG_DEBUG( "found details container for this tau with SeedCalo_EMRadius " << commonDetails->seedCalo_EMRadius() );
164
165 xtaujet->setDetail(xAOD::TauJetParameters::ipZ0SinThetaSigLeadTrk , static_cast<float>( commonDetails->ipZ0SinThetaSigLeadTrk() ) );
166 xtaujet->setDetail(xAOD::TauJetParameters::etOverPtLeadTrk , static_cast<float>( commonDetails->etOverPtLeadTrk() ) );
167 xtaujet->setDetail(xAOD::TauJetParameters::leadTrkPt , static_cast<float>( commonDetails->leadTrkPt() ) );
168 xtaujet->setDetail(xAOD::TauJetParameters::ipSigLeadTrk , static_cast<float>( commonDetails->ipSigLeadTrk() ) );
169 xtaujet->setDetail(xAOD::TauJetParameters::massTrkSys , static_cast<float>( commonDetails->massTrkSys() ) );
170 xtaujet->setDetail(xAOD::TauJetParameters::trkWidth2 , static_cast<float>( commonDetails->trkWidth2() ) );
171 xtaujet->setDetail(xAOD::TauJetParameters::trFlightPathSig , static_cast<float>( commonDetails->trFlightPathSig() ) );
172 xtaujet->setDetail(xAOD::TauJetParameters::numCells , static_cast<int>( commonDetails->numCells() ) );
173 xtaujet->setDetail(xAOD::TauJetParameters::numTopoClusters , static_cast<int>( commonDetails->numTopoClusters() ) );
174 xtaujet->setDetail(xAOD::TauJetParameters::numEffTopoClusters , static_cast<float>( commonDetails->numEffTopoClusters() ) );
175 xtaujet->setDetail(xAOD::TauJetParameters::topoInvMass , static_cast<float>( commonDetails->topoInvMass() ) );
176 xtaujet->setDetail(xAOD::TauJetParameters::effTopoInvMass , static_cast<float>( commonDetails->effTopoInvMass() ) );
177 xtaujet->setDetail(xAOD::TauJetParameters::topoMeanDeltaR , static_cast<float>( commonDetails->topoMeanDeltaR() ) );
178 xtaujet->setDetail(xAOD::TauJetParameters::effTopoMeanDeltaR , static_cast<float>( commonDetails->effTopoMeanDeltaR() ) );
179 xtaujet->setDetail(xAOD::TauJetParameters::EMRadius , static_cast<float>( commonDetails->seedCalo_EMRadius() ) );
180
181 float tempfloat = 0;
182 if ( xtaujet->detail(xAOD::TauJetParameters::EMRadius, tempfloat) )
183 ATH_MSG_DEBUG( "converted details for this xaod tau with SeedCalo_EMRadius " << tempfloat );
184 else
185 ATH_MSG_DEBUG( "error getting SeedCalo_EMRadius from xaod tau " );
186
187 xtaujet->setDetail(xAOD::TauJetParameters::hadRadius , static_cast<float>( commonDetails->seedCalo_hadRadius() ) );
188 xtaujet->setDetail(xAOD::TauJetParameters::etEMAtEMScale , static_cast<float>( commonDetails->seedCalo_etEMAtEMScale() ) );
189 xtaujet->setDetail(xAOD::TauJetParameters::etHadAtEMScale , static_cast<float>( commonDetails->seedCalo_etHadAtEMScale() ) );
190 xtaujet->setDetail(xAOD::TauJetParameters::isolFrac , static_cast<float>( commonDetails->seedCalo_isolFrac() ) );
191 xtaujet->setDetail(xAOD::TauJetParameters::centFrac , static_cast<float>( commonDetails->seedCalo_centFrac() ) );
192 xtaujet->setDetail(xAOD::TauJetParameters::stripWidth2 , static_cast<float>( commonDetails->seedCalo_stripWidth2() ) );
193 xtaujet->setDetail(xAOD::TauJetParameters::nStrip , static_cast<int>( commonDetails->seedCalo_nStrip() ) );
194 xtaujet->setDetail(xAOD::TauJetParameters::trkAvgDist , static_cast<float>( commonDetails->seedCalo_trkAvgDist() ) );
195 xtaujet->setDetail(xAOD::TauJetParameters::trkRmsDist , static_cast<float>( commonDetails->seedCalo_trkRmsDist() ) );
196 xtaujet->setDetail(xAOD::TauJetParameters::lead2ClusterEOverAllClusterE , static_cast<float>( commonDetails->seedCalo_lead2ClusterEOverAllClusterE() ) );
197 xtaujet->setDetail(xAOD::TauJetParameters::lead3ClusterEOverAllClusterE , static_cast<float>( commonDetails->seedCalo_lead3ClusterEOverAllClusterE() ) );
198 xtaujet->setDetail(xAOD::TauJetParameters::caloIso , static_cast<float>( commonDetails->seedCalo_caloIso() ) );
199 xtaujet->setDetail(xAOD::TauJetParameters::caloIsoCorrected , static_cast<float>( commonDetails->seedCalo_caloIsoCorrected() ) );
200 xtaujet->setDetail(xAOD::TauJetParameters::dRmax , static_cast<float>( commonDetails->seedCalo_dRmax() ) );
201 xtaujet->setDetail(xAOD::TauJetParameters::secMaxStripEt , static_cast<float>( commonDetails->seedTrk_secMaxStripEt() ) );
202 xtaujet->setDetail(xAOD::TauJetParameters::sumEMCellEtOverLeadTrkPt , static_cast<float>( commonDetails->seedTrk_sumEMCellEtOverLeadTrkPt() ) );
203 xtaujet->setDetail(xAOD::TauJetParameters::hadLeakEt , static_cast<float>( commonDetails->seedTrk_hadLeakEt() ) );
204
205 xtaujet->setDetail(xAOD::TauJetParameters::cellBasedEnergyRing1 , static_cast<float>( commonDetails->cellBasedEnergyRing1() ) );
206 xtaujet->setDetail(xAOD::TauJetParameters::cellBasedEnergyRing2 , static_cast<float>( commonDetails->cellBasedEnergyRing2() ) );
207 xtaujet->setDetail(xAOD::TauJetParameters::cellBasedEnergyRing3 , static_cast<float>( commonDetails->cellBasedEnergyRing3() ) );
208 xtaujet->setDetail(xAOD::TauJetParameters::cellBasedEnergyRing4 , static_cast<float>( commonDetails->cellBasedEnergyRing4() ) );
209 xtaujet->setDetail(xAOD::TauJetParameters::cellBasedEnergyRing5 , static_cast<float>( commonDetails->cellBasedEnergyRing5() ) );
210 xtaujet->setDetail(xAOD::TauJetParameters::cellBasedEnergyRing6 , static_cast<float>( commonDetails->cellBasedEnergyRing6() ) );
211 xtaujet->setDetail(xAOD::TauJetParameters::cellBasedEnergyRing7 , static_cast<float>( commonDetails->cellBasedEnergyRing7() ) );
212 xtaujet->setDetail(xAOD::TauJetParameters::TRT_NHT_OVER_NLT , static_cast<float>( commonDetails->TRT_NHT_OVER_NLT() ) );
213 } else {
214 ATH_MSG_WARNING( "there was no TauDetails container found" );
215 }
216
217 }
218
219
220 return StatusCode::SUCCESS;
221 }
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
unsigned int numTrack() const
number of Tracks associated to Tau candidate, CAUTION not to be confused with numberOfTracks()!
unsigned int ROIWord() const
Retrieve ROI Word (trigger purposes)
CLHEP::HepLorentzVector getHLV(TauJetParameters ::TauCalibType type) const
const TauPID * tauID() const
Get TauPID object containing discriminant values.
const T * details(const std::string &name) const
Get first details object stored in SG collection with matching name.
double discriminant(TauJetParameters::TauID discID) const
Get value of discriminant.
bool isTau(TauJetParameters::IsTauFlag flag) const
Get Flag for tau acceptance based on predefined arbitrary criteria.
DataModel_detail::const_iterator< DataVector > const_iterator
Definition DataVector.h:838
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
virtual double m() const
mass
virtual double pt() const
transverse momentum
virtual double phi() const
phi in [-pi,pi[
virtual double eta() const
pseudo rapidity
virtual ChargeType charge() const
returns charge as a typedef ChargeType currently Charge Type is a double for jets this may be changed...
virtual double phi() const
The azimuthal angle ( ) of the particle.
double etaTauEtaCalib() const
double phiJetSeed() const
double ptTauEnergyScale() const
void setROIWord(unsigned int)
double mJetSeed() const
double etaTauEnergyScale() const
float charge() const
unsigned int ROIWord() const
the ROIWord, in case TauJet is used in EF trigger
double mTauEnergyScale() const
double ptDetectorAxis() const
virtual double pt() const
The transverse momentum ( ) of the particle.
double phiDetectorAxis() const
double etaDetectorAxis() const
void setCharge(float)
double ptTauEtaCalib() const
double ptIntermediateAxis() const
int trackFilterQuality() const
void setPi0ConeDR(float)
bool detail(TauJetParameters::Detail detail, int &value) const
Get and set values of common details variables via enum.
float pi0ConeDR() const
double phiTauEtaCalib() const
void setDiscriminant(TauJetParameters::TauID discID, double disc)
Set value of discriminant.
void setDetail(TauJetParameters::Detail detail, int value)
void setTrackFilterQuality(int)
void setP4(double pt, double eta, double phi, double m)
Set methods for IParticle values.
double mDetectorAxis() const
double ptJetSeed() const
void setTrackFilterProngs(int)
void setIsTau(TauJetParameters::IsTauFlag flag, bool value)
Set Flag for tau acceptance based on predefined arbitrary criteria.
int trackFilterProngs() const
double discriminant(TauJetParameters::TauID discID) const
Get value of discriminant.
virtual double m() const
The invariant mass of the particle.
double mIntermediateAxis() const
double etaJetSeed() const
double phiTauEnergyScale() const
double etaIntermediateAxis() const
double mTauEtaCalib() const
virtual double eta() const
The pseudorapidity ( ) of the particle.
double phiIntermediateAxis() const
size_t nTracks(TauJetParameters::TauTrackFlag flag=TauJetParameters::TauTrackFlag::classifiedCharged) const
@ BDTEleScore
Boosted Decision Tree score for electron rejection.
@ BDTJetScoreSigTrans
BDT score which is signal transformed/flattened.
@ BDTJetScore
discriminant for PDRS (used by tau1p3p)
@ hadRadius
Get hadron calorimeter radius.
Definition TauDefs.h:192
@ EMRadius
Get E_T radius.
Definition TauDefs.h:190
@ secMaxStripEt
migrate only seedTrk_ variables which are used in reco and ID and without prefix
Definition TauDefs.h:230
@ stripWidth2
Get strip width ^2.
Definition TauDefs.h:202
@ topoInvMass
get invariant mass from topoclusters of jet associated to tau candidate
Definition TauDefs.h:177
@ etHadAtEMScale
Get Hadronic energy at EM scale.
Definition TauDefs.h:196
@ isolFrac
Get isolation fraction.
Definition TauDefs.h:198
@ lead2ClusterEOverAllClusterE
Get sum of 2 leading cluster energy over all cluster energy.
Definition TauDefs.h:218
@ topoMeanDeltaR
get mean distance to leading topocluster for topoclusters of jet associated to tau candidate
Definition TauDefs.h:181
@ trkRmsDist
Get the RMS of track distance to calorimeter seed.
Definition TauDefs.h:216
@ nStrip
Get number of strips.
Definition TauDefs.h:204
@ cellBasedEnergyRing4
Ring 4: 0.10 < R < 0.125.
Definition TauDefs.h:252
@ effTopoMeanDeltaR
get mean distance to leading topocluster for effective topoclusters of jet associated to tau candidat...
Definition TauDefs.h:183
@ caloIso
Get sum of transvers energy of clusters around jet seed within 0.2 < dR < 0.4.
Definition TauDefs.h:222
@ trkAvgDist
Get calibrated EM transverse energy (DEPRECATED since r19)
Definition TauDefs.h:214
@ cellBasedEnergyRing6
Ring 6: 0.15 < R < 0.2.
Definition TauDefs.h:256
@ cellBasedEnergyRing5
Ring 5: 0.125 < R < 0.15.
Definition TauDefs.h:254
@ effTopoInvMass
get invariant mass from effective topoclusters of jet associated to tau candidate
Definition TauDefs.h:179
@ cellBasedEnergyRing7
Ring 7: 0.2 < R < 0.4.
Definition TauDefs.h:258
@ etEMAtEMScale
Get EM energy at EM scale.
Definition TauDefs.h:194
@ TRT_NHT_OVER_NLT
TRT hits high threshold over low threshold.
Definition TauDefs.h:260
@ centFrac
Get centrality fraction.
Definition TauDefs.h:200
@ caloIsoCorrected
Get sum of transvers energy of clusters around jet seed within 0.2 < dR < 0.4 (pile up corrected)
Definition TauDefs.h:224
@ cellBasedEnergyRing2
Ring 2: 0.05 < R < 0.075.
Definition TauDefs.h:248
@ numTopoClusters
get number of topocluster constituents of jet associated to tau candidate
Definition TauDefs.h:173
@ numEffTopoClusters
get number of effective topocluster constituents of jet associated to tau candidate !...
Definition TauDefs.h:175
@ cellBasedEnergyRing3
Ring 3: 0.075 < R < 0.10.
Definition TauDefs.h:250
@ cellBasedEnergyRing1
EM+TES final scale.
Definition TauDefs.h:246
@ dRmax
Get maximal dR of tracks associated to calo-seeded tau.
Definition TauDefs.h:226
@ lead3ClusterEOverAllClusterE
Get sum of 3 leading cluster energy over all cluster energy.
Definition TauDefs.h:220
@ BDTJetScore
Boosted Decision Tree socre for Jet rejection (not transformed)
Definition TauDefs.h:78
@ BDTEleScore
Boosted Decision Tree score for electron rejection.
Definition TauDefs.h:80
@ BDTJetScoreSigTrans
BDT score which is signal transformed/flattened.
Definition TauDefs.h:84
TauJet_v3 TauJet
Definition of the current "tau version".

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ getNewJetLink()

ElementLink< xAOD::JetContainer > xAODMaker::TauJetCnvTool::getNewJetLink ( const ElementLink< JetCollection > & oldLink,
const std::string & name ) const
private

Definition at line 258 of file TauJetCnvTool.cxx.

258 {
259 ElementLink<xAOD::JetContainer> newLink;
260 newLink.resetWithKeyAndIndex( name, oldLink.index() );
261 return newLink;
262 }

◆ getNewTrackLink()

ElementLink< xAOD::TrackParticleContainer > xAODMaker::TauJetCnvTool::getNewTrackLink ( const ElementLink< Rec::TrackParticleContainer > & oldLink,
const std::string & name ) const
private

Definition at line 252 of file TauJetCnvTool.cxx.

252 {
253 ElementLink<xAOD::TrackParticleContainer> newLink;
254 newLink.resetWithKeyAndIndex( name, oldLink.index() );
255 return newLink;
256 }

◆ initialize()

StatusCode xAODMaker::TauJetCnvTool::initialize ( )
overridevirtual

Definition at line 45 of file TauJetCnvTool.cxx.

46 {
47 ATH_MSG_INFO ("Initializing " << name() << "...");
48
49 return StatusCode::SUCCESS;
50 }
#define ATH_MSG_INFO(x)

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ interfaceID()

const InterfaceID & xAODMaker::ITauJetCnvTool::interfaceID ( )
inlinestaticinherited

Gaudi interface definition.

Definition at line 49 of file ITauJetCnvTool.h.

49 {
50 return IID_ITauJetCnvTool;
51 }
static const InterfaceID IID_ITauJetCnvTool("xAODMaker::ITauJetCnvTool", 1, 0)
The interface provided by ITauJetCnvTool.

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setLinks()

void xAODMaker::TauJetCnvTool::setLinks ( const Analysis::TauJet & aodtau,
xAOD::TauJet & xaodtau ) const
private

Definition at line 223 of file TauJetCnvTool.cxx.

223 {
224
225 // Need to reset links from old TrackParticle to xAOD::TrackParticles
226
227 for (unsigned int i = 0; i != aodtau.numTrack(); ++i)
228 {
229 ATH_MSG_DEBUG( "track number : " << i << " has pt: " << (aodtau.track(i) ? aodtau.track(i)->pt() : -1111.) );
230 }
231
232 //get common details member, because wide and other tracks are stored there
233 const Analysis::TauCommonDetails* commonDetails(aodtau.details<Analysis::TauCommonDetails>());
234
235
236 for (unsigned int i = 0; i != commonDetails->seedCalo_nWideTrk(); ++i)
237 {
238 ATH_MSG_DEBUG( "wide track number : " << i << " has pt: " << commonDetails->seedCalo_wideTrk(i)->pt() );
239 }
240
241 ATH_MSG_DEBUG( "trying to set jet link " );
242
243 ATH_MSG_DEBUG( "tau jet seed has pt : " << aodtau.jet()->pt() );
244
245 xaodtau.setJetLink(getNewJetLink(aodtau.jetLink(), m_jets) );
246
247 ATH_MSG_DEBUG( "tau jet seed has pt : " << (*xaodtau.jetLink())->pt() );
248
249
250 }
const ElementLink< JetCollection > jetLink() const
ElementLink to seed Jet, might be invalid if not seeded from a Jet
const Jet * jet() const
seed Jet, might be NULL if not seeded from a Jet
const Rec::TrackParticle * track(unsigned int i) const
Tracks associated to Tau candidate.
virtual double pt() const =0
transverse momentum
virtual double pt() const
transverse momentum
Gaudi::Property< std::string > m_jets
Location/Key for jets.
ElementLink< xAOD::JetContainer > getNewJetLink(const ElementLink< JetCollection > &oldLink, const std::string &name) const
void setJetLink(const JetLink_t &jetLink)
const JetLink_t & jetLink() const

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_inDetTrackParticles

Gaudi::Property<std::string> xAODMaker::TauJetCnvTool::m_inDetTrackParticles {this, "TrackContainerName", "InDetTrackParticles"}
private

Containers.

Location/Key for TrackParticles from ID.

Definition at line 79 of file TauJetCnvTool.h.

79{this, "TrackContainerName", "InDetTrackParticles"};

◆ m_jets

Gaudi::Property<std::string> xAODMaker::TauJetCnvTool::m_jets {this, "JetContainerName", "AntiKt4LCTopoJets"}
private

Location/Key for jets.

Definition at line 80 of file TauJetCnvTool.h.

80{this, "JetContainerName", "AntiKt4LCTopoJets"};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: