19#include "Gaudi/Property.h"
31 const std::string& name,
32 const IInterface* parent ) :
35 declareInterface< ITauJetCnvTool > (
this);
49 return StatusCode::SUCCESS;
57 for( ; it!= itE; ++it)
61 ATH_MSG_DEBUG(
"trying to convert tau with pt="<< tau->
pt() <<
" eta=" << tau->
eta() <<
" phi=" << tau->
phi() <<
" m=" << tau->
m() );
68 ATH_MSG_DEBUG(
"converted xtau with pt="<< xtaujet->
pt() <<
" eta=" << xtaujet->
eta() <<
" phi=" << xtaujet->
phi() <<
" m=" << xtaujet->
m() );
141 if(commonDetails !=
nullptr)
183 ATH_MSG_DEBUG(
"converted details for this xaod tau with SeedCalo_EMRadius " << tempfloat );
185 ATH_MSG_DEBUG(
"error getting SeedCalo_EMRadius from xaod tau " );
220 return StatusCode::SUCCESS;
227 for (
unsigned int i = 0; i != aodtau.
numTrack(); ++i)
#define ATH_MSG_WARNING(x)
Helpers for checking error return status codes and reporting errors.
Basic detail class containing information for track and calo seeded tau reconstruction algorithms.
double topoMeanDeltaR() const
get mean distance to leading topocluster for topoclusters of jet associated to tau candidate
unsigned int numTopoClusters() const
get number of topocluster constituents of jet associated to tau candidate
double seedCalo_lead2ClusterEOverAllClusterE() const
Get sum of 2 leading cluster energy over all cluster energy.
double topoInvMass() const
get invariant mass from topoclusters of jet associated to tau candidate
const Rec::TrackParticle * seedCalo_wideTrk(unsigned int i) const
Get seedCalo wide track.
double seedCalo_caloIso() const
Get sum of transvers energy of clusters around jet seed within 0.2 < dR < 0.4.
double etOverPtLeadTrk() const
Get leading E_T to p_T ratio.
double seedCalo_stripWidth2() const
Get strip width ^2.
double seedCalo_etEMAtEMScale() const
Get EM energy at EM scale.
int TrackFilterProngs() const
double seedTrk_secMaxStripEt() const
Get hadronic leakage in Et summed over cells.
double trkWidth2() const
Get track width ^2.
int TrackFilterQuality() const
double cellBasedEnergyRing3() const
Ring 3: 0.075 < R < 0.10.
double TRT_NHT_OVER_NLT() const
TRT hits high threshold over low threshold.
double effTopoMeanDeltaR() const
get mean distance to leading topocluster for effective topoclusters of jet associated to tau candidat...
double seedCalo_trkAvgDist() const
Get the average track distance to calorimeter seed.
unsigned int numCells() const
get number of cells associated to tau candidate
double seedTrk_sumEMCellEtOverLeadTrkPt() const
Get ratio of LAr+EM E_T / leading track p_T.
double cellBasedEnergyRing5() const
Ring 5: 0.125 < R < 0.15.
double effTopoInvMass() const
get invariant mass from effective topoclusters of jet associated to tau candidate
double seedTrk_hadLeakEt() const
Get hadronic leakage in Et summed over cells.
double seedCalo_trkRmsDist() const
Get the RMS of track distance to calorimeter seed.
double trFlightPathSig() const
Get Transverse flight path significance.
unsigned int seedCalo_nWideTrk() const
Get number of seedCalo wide tracks.
double seedCalo_EMRadius() const
Get E_T radius.
double ipSigLeadTrk() const
Get impact parameter significance.
double cellBasedEnergyRing2() const
Ring 2: 0.05 < R < 0.075.
double massTrkSys() const
Get track system invariant mass.
double leadTrkPt() const
Get leading track p_T.
double cellBasedEnergyRing4() const
Ring 4: 0.10 < R < 0.125.
double cellBasedEnergyRing7() const
Ring 7: 0.2 < R < 0.4.
double seedCalo_lead3ClusterEOverAllClusterE() const
Get sum of 3 leading cluster energy over all cluster energy.
double seedCalo_hadRadius() const
Get hadron calorimeter radius.
double seedCalo_isolFrac() const
Get isolation fraction.
int seedCalo_nStrip() const
Get number of strips.
double seedCalo_etHadAtEMScale() const
Get Hadronic energy at EM scale.
double seedCalo_caloIsoCorrected() const
Get sum of transvers energy of clusters around jet seed within 0.2 < dR < 0.4 (pile up corrected)
double cellBasedEnergyRing1() const
Ring 1: 0.00 < R < 0.05.
double seedCalo_dRmax() const
Get maximal dR of tracks associated to calo-seeded tau.
double seedCalo_centFrac() const
Get centrality fraction.
double cellBasedEnergyRing6() const
Ring 6: 0.15 < R < 0.2.
double ipZ0SinThetaSigLeadTrk() const
Get significance of z0SinTheta.
double numEffTopoClusters() const
get number of effective topocluster constituents of jet associated to tau candidate !...
Object for taus common for ESD and AOD.
unsigned int numTrack() const
number of Tracks associated to Tau candidate, CAUTION not to be confused with numberOfTracks()!
const ElementLink< JetCollection > jetLink() const
ElementLink to seed Jet, might be invalid if not seeded from a Jet
unsigned int ROIWord() const
Retrieve ROI Word (trigger purposes)
const Jet * jet() const
seed Jet, might be NULL if not seeded from a Jet
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.
const Rec::TrackParticle * track(unsigned int i) const
Tracks associated to Tau candidate.
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
value_type push_back(value_type pElem)
Add an element to the end of the collection.
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.
ElementLink implementation for ROOT usage.
void resetWithKeyAndIndex(const ID_type &dataID, index_type elemID, IProxyDict *sg=0)
Set the link to an element given by string key and index.
index_type index() const
Get the index of the element inside of its container.
virtual double pt() const =0
transverse momentum
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 pt() const
transverse momentum
virtual double phi() const
The azimuthal angle ( ) of the particle.
double etaTauEtaCalib() const
void setJetLink(const JetLink_t &jetLink)
double phiJetSeed() const
double ptTauEnergyScale() const
void setROIWord(unsigned int)
double etaTauEnergyScale() 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
double ptTauEtaCalib() const
double ptIntermediateAxis() const
int trackFilterQuality() const
const JetLink_t & jetLink() const
bool detail(TauJetParameters::Detail detail, int &value) const
Get and set values of common details variables via enum.
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
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.
@ EMRadius
Get E_T radius.
@ secMaxStripEt
migrate only seedTrk_ variables which are used in reco and ID and without prefix
@ stripWidth2
Get strip width ^2.
@ topoInvMass
get invariant mass from topoclusters of jet associated to tau candidate
@ etHadAtEMScale
Get Hadronic energy at EM scale.
@ isolFrac
Get isolation fraction.
@ lead2ClusterEOverAllClusterE
Get sum of 2 leading cluster energy over all cluster energy.
@ topoMeanDeltaR
get mean distance to leading topocluster for topoclusters of jet associated to tau candidate
@ trkRmsDist
Get the RMS of track distance to calorimeter seed.
@ nStrip
Get number of strips.
@ cellBasedEnergyRing4
Ring 4: 0.10 < R < 0.125.
@ effTopoMeanDeltaR
get mean distance to leading topocluster for effective topoclusters of jet associated to tau candidat...
@ sumEMCellEtOverLeadTrkPt
@ caloIso
Get sum of transvers energy of clusters around jet seed within 0.2 < dR < 0.4.
@ trkAvgDist
Get calibrated EM transverse energy (DEPRECATED since r19)
@ cellBasedEnergyRing6
Ring 6: 0.15 < R < 0.2.
@ cellBasedEnergyRing5
Ring 5: 0.125 < R < 0.15.
@ effTopoInvMass
get invariant mass from effective topoclusters of jet associated to tau candidate
@ cellBasedEnergyRing7
Ring 7: 0.2 < R < 0.4.
@ etEMAtEMScale
Get EM energy at EM scale.
@ TRT_NHT_OVER_NLT
TRT hits high threshold over low threshold.
@ centFrac
Get centrality fraction.
@ caloIsoCorrected
Get sum of transvers energy of clusters around jet seed within 0.2 < dR < 0.4 (pile up corrected)
@ cellBasedEnergyRing2
Ring 2: 0.05 < R < 0.075.
@ numTopoClusters
get number of topocluster constituents of jet associated to tau candidate
@ numEffTopoClusters
get number of effective topocluster constituents of jet associated to tau candidate !...
@ cellBasedEnergyRing3
Ring 3: 0.075 < R < 0.10.
@ cellBasedEnergyRing1
EM+TES final scale.
@ dRmax
Get maximal dR of tracks associated to calo-seeded tau.
@ lead3ClusterEOverAllClusterE
Get sum of 3 leading cluster energy over all cluster energy.
@ BDTJetScore
Boosted Decision Tree socre for Jet rejection (not transformed)
@ BDTEleScore
Boosted Decision Tree score for electron rejection.
@ BDTJetScoreSigTrans
BDT score which is signal transformed/flattened.
TauJet_v3 TauJet
Definition of the current "tau version".
TauJetContainer_v3 TauJetContainer
Definition of the current "taujet container version".