ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
TauAnalysisAlgorithms
TauAnalysisAlgorithms
TauTruthMatchingAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
8
9
#ifndef TAU_ANALYSIS_ALGORITHMS__TAU_TRUTH_MATCHING_ALG_H
10
#define TAU_ANALYSIS_ALGORITHMS__TAU_TRUTH_MATCHING_ALG_H
11
12
#include <
AnaAlgorithm/AnaAlgorithm.h
>
13
#include <
TauAnalysisTools/ITauTruthMatchingTool.h
>
14
#include <
SelectionHelpers/SysReadSelectionHandle.h
>
15
#include <
SystematicsHandles/SysListHandle.h
>
16
#include <
SystematicsHandles/SysReadHandle.h
>
17
#include <
SystematicsHandles/SysWriteDecorHandle.h
>
18
#include <
xAODJet/JetContainer.h
>
19
#include <
xAODTau/TauJetContainer.h
>
20
#include <
xAODTruth/TruthParticleContainer.h
>
21
22
namespace
CP
23
{
25
26
class
TauTruthMatchingAlg
final :
public
EL::AnaAlgorithm
27
{
29
public
:
30
using
EL::AnaAlgorithm::AnaAlgorithm
;
31
StatusCode
initialize
()
override
;
32
StatusCode
execute
(
const
EventContext& ctx)
override
;
33
34
35
37
private
:
38
ToolHandle<TauAnalysisTools::ITauTruthMatchingTool>
m_matchingTool
{
this
,
"matchingTool"
,
"TauAnalysisTools::TauTruthMatchingTool"
,
"the matching tool we apply"
};
39
41
private
:
42
SysListHandle
m_systematicsList
{
this
};
43
45
private
:
46
SysReadHandle<xAOD::TauJetContainer>
m_tauHandle
{
47
this
,
"taus"
,
"TauJets"
,
"the tau collection to run on"
};
48
50
private
:
51
SysReadSelectionHandle
m_preselection
{
52
this
,
"preselection"
,
""
,
"the preselection to apply"
};
53
55
private
:
56
SysWriteDecorHandle<char>
m_isTruthMatchedDecor
{
57
this
,
"isTruthMatchedDecoration"
,
"IsTruthMatched"
,
58
"decoration for truth matching flag"
};
59
61
private
:
62
SysWriteDecorHandle<ElementLink<xAOD::JetContainer>
>
m_truthJetLinkDecor
{
63
this
,
"truthJetLinkDecoration"
,
"truthJetLink"
,
64
"decoration for truth jet link"
};
65
67
private
:
68
SysWriteDecorHandle<ElementLink<xAOD::TruthParticleContainer>
>
m_truthParticleLinkDecor
{
69
this
,
"truthParticleLinkDecoration"
,
"truthParticleLink"
,
70
"decoration for truth particle link"
};
71
};
72
}
73
74
#endif
AnaAlgorithm.h
TruthParticleContainer.h
ITauTruthMatchingTool.h
JetContainer.h
SysListHandle.h
SysReadHandle.h
SysReadSelectionHandle.h
SysWriteDecorHandle.h
TauJetContainer.h
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition
SysListHandle.h:33
CP::SysReadHandle
a data handle for reading systematics varied input data
Definition
SysReadHandle.h:33
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition
SysReadSelectionHandle.h:32
CP::SysWriteDecorHandle
a data handle for reading systematics varied input data
Definition
SysWriteDecorHandle.h:42
CP::TauTruthMatchingAlg
an algorithm for calling ITauTruthMatchingTool
Definition
TauTruthMatchingAlg.h:27
CP::TauTruthMatchingAlg::m_isTruthMatchedDecor
SysWriteDecorHandle< char > m_isTruthMatchedDecor
output decoration for truth matching flag
Definition
TauTruthMatchingAlg.h:56
CP::TauTruthMatchingAlg::m_matchingTool
ToolHandle< TauAnalysisTools::ITauTruthMatchingTool > m_matchingTool
the matching tool
Definition
TauTruthMatchingAlg.h:38
CP::TauTruthMatchingAlg::m_tauHandle
SysReadHandle< xAOD::TauJetContainer > m_tauHandle
the tau collection we run on
Definition
TauTruthMatchingAlg.h:46
CP::TauTruthMatchingAlg::m_truthParticleLinkDecor
SysWriteDecorHandle< ElementLink< xAOD::TruthParticleContainer > > m_truthParticleLinkDecor
output decoration for truth particle link
Definition
TauTruthMatchingAlg.h:68
CP::TauTruthMatchingAlg::initialize
StatusCode initialize() override
Definition
TauTruthMatchingAlg.cxx:23
CP::TauTruthMatchingAlg::m_preselection
SysReadSelectionHandle m_preselection
the preselection we apply to our input
Definition
TauTruthMatchingAlg.h:51
CP::TauTruthMatchingAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition
TauTruthMatchingAlg.h:42
CP::TauTruthMatchingAlg::m_truthJetLinkDecor
SysWriteDecorHandle< ElementLink< xAOD::JetContainer > > m_truthJetLinkDecor
output decoration for truth jet link
Definition
TauTruthMatchingAlg.h:62
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition
AnaAlgorithm.h:74
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition
AnaAlgorithm.cxx:40
EL::AnaAlgorithm::execute
virtual::StatusCode execute()
execute this algorithm
Definition
AnaAlgorithm.cxx:315
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
Generated on
for ATLAS Offline Software by
1.17.0