ATLAS Offline Software
Loading...
Searching...
No Matches
DiTauTruthMatchingTool.h
Go to the documentation of this file.
1
10// Dear emacs, this is -*- c++ -*-
11
12
13#ifndef TAUANALYSISTOOLS_DITAUTRUTHMATCHINGTOOL_H
14#define TAUANALYSISTOOLS_DITAUTRUTHMATCHINGTOOL_H
15
16
17// Local include(s):
20#include "xAODBase/IParticle.h"
23
24namespace TauAnalysisTools
25{
26
30{
35
36public: // Interface functions
37
38 DiTauTruthMatchingTool( const std::string& name );
39
41
42 // initialize the tool
43 virtual StatusCode initialize();
44
47 virtual void getTruth(const xAOD::DiTauJet& xDiTau);
48
49 virtual void getTruth(const std::vector<const xAOD::DiTauJet*>& vDiTaus);
50
51private: // private helper functions
52
53 StatusCode findTruthTau(const xAOD::DiTauJet& xDiTau);
54 StatusCode checkTruthMatch (const xAOD::DiTauJet& xDiTau, const xAOD::TruthParticleContainer& xTauContainer) const;
55 StatusCode truthMatch (const TLorentzVector& vSubjetTLV,
56 const xAOD::TruthParticleContainer& xTruthTauContainer,
57 const xAOD::TruthParticle* &xTruthMatch,
58 const xAOD::Jet* &xTruthJetMatch,
59 TruthMatchedParticleType &eTruthMatchedParticleType) const;
60
61private: // steering variables
62
63 Gaudi::Property<double> m_dMaxDeltaR{this, "MaxDeltaR", 0.2};
64
67
68private: // private helper variables
69
74}; // class DiTauTruthMatchingTool
75
76}
77#endif // TAUANALYSISTOOLS_DITAUTRUTHMATCHINGTOOL_H
#define ASG_TOOL_CLASS2(CLASSNAME, INT1, INT2)
Cached value with atomic update.
Tau, lepton and jet truth matching for ditau jets.
Cached value with atomic update.
Definition CachedValue.h:55
Helper class to provide constant type-safe access to aux data.
StatusCode truthMatch(const TLorentzVector &vSubjetTLV, const xAOD::TruthParticleContainer &xTruthTauContainer, const xAOD::TruthParticle *&xTruthMatch, const xAOD::Jet *&xTruthJetMatch, TruthMatchedParticleType &eTruthMatchedParticleType) const
CxxUtils::CachedValue< bool > m_bIsTruthMatchedAvailable
virtual void getTruth(const xAOD::DiTauJet &xDiTau)
get pointer to the truth matched particle.
StatusCode checkTruthMatch(const xAOD::DiTauJet &xDiTau, const xAOD::TruthParticleContainer &xTauContainer) const
StatusCode findTruthTau(const xAOD::DiTauJet &xDiTau)
CxxUtils::CachedValue< bool > m_bIsTruthParticleLinkAvailable
virtual ASG_TOOL_CLASS2(DiTauTruthMatchingTool, TauAnalysisTools::IBuildTruthTaus, TauAnalysisTools::IDiTauTruthMatchingTool) public ~DiTauTruthMatchingTool()
Create a proper constructor for Athena.
Jet_v1 Jet
Definition of the current "jet version".
TruthParticle_v1 TruthParticle
Typedef to implementation.
DiTauJet_v1 DiTauJet
Definition of the current version.
Definition DiTauJet.h:17
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.