ATLAS Offline Software
Loading...
Searching...
No Matches
DiTauTruthMatchingTool.h
Go to the documentation of this file.
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 ADD_CMODE(TauAnalysisTools)
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
71 SG::ConstAccessor<double> m_accEtaVis;
72 SG::ConstAccessor<double> m_accPhiVis;
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.
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()