ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
AsgAnalysisAlgorithms
AsgAnalysisAlgorithms
PMGTruthWeightAlg.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
#ifndef ASG_ANALYSIS_ALGORITHMS__PMG_TRUTH_WEIGHT_ALG_H
9
#define ASG_ANALYSIS_ALGORITHMS__PMG_TRUTH_WEIGHT_ALG_H
10
11
#include <
AnaAlgorithm/AnaAlgorithm.h
>
12
#include <
PMGAnalysisInterfaces/IPMGTruthWeightTool.h
>
13
#include <
SystematicsHandles/SysReadHandle.h
>
14
#include <
SystematicsHandles/SysWriteDecorHandle.h
>
15
#include <
SystematicsHandles/SysListHandle.h
>
16
#include <
xAODEventInfo/EventInfo.h
>
17
18
namespace
CP
19
{
21
class
PMGTruthWeightAlg
final :
public
EL::AnaAlgorithm
22
{
24
using
EL::AnaAlgorithm::AnaAlgorithm
;
25
StatusCode
initialize
()
override
;
26
StatusCode
execute
(
const
EventContext& ctx)
override
;
27
29
private
:
30
ToolHandle<PMGTools::IPMGTruthWeightTool>
m_truthWeightTool
{
this
,
"truthWeightTool"
,
"PMGTools::PMGTruthWeightTool"
,
"the truth weight tool"
};
31
33
private
:
34
SysListHandle
m_systematicsList
{
this
};
35
37
private
:
38
SysReadHandle<xAOD::EventInfo>
m_eventInfoHandle
{
39
this
,
"eventInfo"
,
"EventInfo"
,
"the event info object to run on"
};
40
42
private
:
43
SysWriteDecorHandle<float>
m_decoration
{
44
this
,
"decoration"
,
""
,
"the decoration for the truth weights"
};
45
};
46
}
47
48
#endif
AnaAlgorithm.h
IPMGTruthWeightTool.h
SysListHandle.h
SysReadHandle.h
SysWriteDecorHandle.h
CP::PMGTruthWeightAlg
an algorithm for calling IPMGTruthWeightTool
Definition
PMGTruthWeightAlg.h:22
CP::PMGTruthWeightAlg::m_truthWeightTool
ToolHandle< PMGTools::IPMGTruthWeightTool > m_truthWeightTool
the tool
Definition
PMGTruthWeightAlg.h:30
CP::PMGTruthWeightAlg::m_eventInfoHandle
SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info we decorate
Definition
PMGTruthWeightAlg.h:38
CP::PMGTruthWeightAlg::m_decoration
SysWriteDecorHandle< float > m_decoration
the decoration for the truth weights
Definition
PMGTruthWeightAlg.h:43
CP::PMGTruthWeightAlg::initialize
StatusCode initialize() override
Definition
PMGTruthWeightAlg.cxx:22
CP::PMGTruthWeightAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition
PMGTruthWeightAlg.h:34
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::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::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
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0