ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
AsgAnalysisAlgorithms
AsgAnalysisAlgorithms
SysTruthWeightAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
#ifndef ASG_ANALYSIS_ALGORITHMS__SYS_TRUTH_WEIGHT_ALG_H
8
#define ASG_ANALYSIS_ALGORITHMS__SYS_TRUTH_WEIGHT_ALG_H
9
10
#include <
AnaAlgorithm/AnaAlgorithm.h
>
11
#include <
PMGAnalysisInterfaces/ISysTruthWeightTool.h
>
12
#include <
SystematicsHandles/SysListHandle.h
>
13
#include <
SystematicsHandles/SysReadHandle.h
>
14
#include <
SystematicsHandles/SysWriteDecorHandle.h
>
15
#include <
xAODEventInfo/EventInfo.h
>
16
17
namespace
CP
18
{
20
class
SysTruthWeightAlg
final :
public
EL::AnaAlgorithm
21
{
23
public
:
24
SysTruthWeightAlg
(
const
std::string&
name
, ISvcLocator* pSvcLocator);
25
26
public
:
27
StatusCode
initialize
()
override
;
28
29
public
:
30
StatusCode
execute
(
const
EventContext& ctx)
override
;
31
33
private
:
34
std::string
m_truthParticleContainer
;
35
37
private
:
38
ToolHandle<PMGTools::ISysTruthWeightTool>
m_sysTruthWeightTool
;
39
41
private
:
42
SysListHandle
m_systematicsList
{
this
};
43
45
private
:
46
SysReadHandle<xAOD::EventInfo>
m_eventInfoHandle
{
47
this
,
"eventInfo"
,
"EventInfo"
,
"the event info object to run on"
};
48
50
private
:
51
SysWriteDecorHandle<float>
m_decoration
{
52
this
,
"decoration"
,
""
,
"the decoration for the truth weights"
};
53
};
54
}
// namespace CP
55
56
#endif
AnaAlgorithm.h
ISysTruthWeightTool.h
SysListHandle.h
SysReadHandle.h
SysWriteDecorHandle.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::SysTruthWeightAlg::m_truthParticleContainer
std::string m_truthParticleContainer
the truth particle container to use for the calculation
Definition
SysTruthWeightAlg.h:34
CP::SysTruthWeightAlg::SysTruthWeightAlg
SysTruthWeightAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Definition
SysTruthWeightAlg.cxx:23
CP::SysTruthWeightAlg::m_sysTruthWeightTool
ToolHandle< PMGTools::ISysTruthWeightTool > m_sysTruthWeightTool
the tool
Definition
SysTruthWeightAlg.h:38
CP::SysTruthWeightAlg::initialize
StatusCode initialize() override
Definition
SysTruthWeightAlg.cxx:33
CP::SysTruthWeightAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition
SysTruthWeightAlg.h:42
CP::SysTruthWeightAlg::m_decoration
SysWriteDecorHandle< float > m_decoration
the decoration for the truth weights
Definition
SysTruthWeightAlg.h:51
CP::SysTruthWeightAlg::m_eventInfoHandle
SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event collection we run on
Definition
SysTruthWeightAlg.h:46
CP::SysWriteDecorHandle
a data handle for reading systematics varied input data
Definition
SysWriteDecorHandle.h:42
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition
AnaAlgorithm.h:74
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
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0