ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
TauID
TauAnalysisTools
TauAnalysisTools
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):
18
#include "
TauAnalysisTools/IDiTauTruthMatchingTool.h
"
19
#include "
TauAnalysisTools/BuildTruthTaus.h
"
20
#include "
xAODBase/IParticle.h
"
21
#include "
CxxUtils/CachedValue.h
"
22
#include "
AsgTools/PropertyWrapper.h
"
23
24
namespace
ADD_CMODE(TauAnalysisTools)
25
{
26
27
class
DiTauTruthMatchingTool
28
:
public
virtual
BuildTruthTaus
29
,
public
virtual
IDiTauTruthMatchingTool
30
{
32
ASG_TOOL_CLASS2
( DiTauTruthMatchingTool,
33
IBuildTruthTaus,
34
IDiTauTruthMatchingTool )
35
36
public
:
// 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
51
private
:
// 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
61
private
:
// 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
68
private
:
// 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
}
77
#endif
// TAUANALYSISTOOLS_DITAUTRUTHMATCHINGTOOL_H
ASG_TOOL_CLASS2
#define ASG_TOOL_CLASS2(CLASSNAME, INT1, INT2)
Definition
AsgToolMacros.h:77
BuildTruthTaus.h
CachedValue.h
Cached value with atomic update.
IParticle.h
IDiTauTruthMatchingTool.h
Tau, lepton and jet truth matching for ditau jets.
PropertyWrapper.h
CxxUtils::CachedValue
Cached value with atomic update.
Definition
CachedValue.h:55
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition
ConstAccessor.h:55
TauAnalysisTools::TruthMatchedParticleType
TruthMatchedParticleType
Definition
PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:107
xAOD::Jet
Jet_v1 Jet
Definition of the current "jet version".
Definition
Event/xAOD/xAODJet/xAODJet/Jet.h:17
xAOD::TruthParticle
TruthParticle_v1 TruthParticle
Typedef to implementation.
Definition
Event/xAOD/xAODTruth/xAODTruth/TruthParticle.h:15
xAOD::DiTauJet
DiTauJet_v1 DiTauJet
Definition of the current version.
Definition
DiTauJet.h:17
xAOD::TruthParticleContainer
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.
Definition
Event/xAOD/xAODTruth/xAODTruth/TruthParticleContainer.h:17
initialize
void initialize()
Definition
run_EoverP.cxx:894
Generated on
for ATLAS Offline Software by
1.17.0