ATLAS Offline Software
Loading...
Searching...
No Matches
DiTauTruthMatchingTool.h File Reference

Tau, lepton and jet truth matching for ditau jets. More...

Include dependency graph for DiTauTruthMatchingTool.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

namespace ADD_CMODE (TauAnalysisTools)

Detailed Description

Tau, lepton and jet truth matching for ditau jets.

Author
David Kirchmeier
Guillermo Hamity (ghami.nosp@m.ty@c.nosp@m.ern.c.nosp@m.h)

Definition in file DiTauTruthMatchingTool.h.

Function Documentation

◆ ADD_CMODE()

namespace ADD_CMODE ( TauAnalysisTools )

Create a proper constructor for Athena

get pointer to the truth matched particle. if no truth particle was found a null pointer is returned

Definition at line 1 of file DiTauTruthMatchingTool.h.

25{
26
27class DiTauTruthMatchingTool
28 : public virtual BuildTruthTaus
29 , public virtual IDiTauTruthMatchingTool
30{
32 ASG_TOOL_CLASS2( DiTauTruthMatchingTool,
33 IBuildTruthTaus,
34 IDiTauTruthMatchingTool )
35
36public: // Interface functions
37
38 DiTauTruthMatchingTool( const std::string& name );
39
40 virtual ~DiTauTruthMatchingTool();
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 TauAnalysisTools::TruthMatchedParticleType &eTruthMatchedParticleType) const;
60
61private: // steering variables
62
63 Gaudi::Property<double> m_dMaxDeltaR{this, "MaxDeltaR", 0.2};
64
65 CxxUtils::CachedValue<bool> m_bIsTruthMatchedAvailable;
66 CxxUtils::CachedValue<bool> m_bIsTruthParticleLinkAvailable;
67
68private: // private helper variables
69
70 SG::ConstAccessor<double> m_accPtVis;
71 SG::ConstAccessor<double> m_accEtaVis;
72 SG::ConstAccessor<double> m_accPhiVis;
73 SG::ConstAccessor<double> m_accMVis;
74}; // class DiTauTruthMatchingTool
75
76}
#define ASG_TOOL_CLASS2(CLASSNAME, INT1, INT2)
::StatusCode StatusCode
StatusCode definition for legacy code.
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.
void initialize()