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-2026 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 <
AsgDataHandles/ReadHandleKey.h
>
12
#include <
PMGAnalysisInterfaces/ISysTruthWeightTool.h
>
13
#include <
SystematicsHandles/SysListHandle.h
>
14
#include <
SystematicsHandles/SysReadHandle.h
>
15
#include <
SystematicsHandles/SysWriteDecorHandle.h
>
16
#include <
xAODEventInfo/EventInfo.h
>
17
#include <
xAODTruth/TruthParticleContainer.h
>
18
19
namespace
CP
20
{
22
class
SysTruthWeightAlg
final :
public
EL::AnaAlgorithm
23
{
25
public
:
26
using
EL::AnaAlgorithm::AnaAlgorithm
;
27
28
public
:
29
StatusCode
initialize
()
override
;
30
31
public
:
32
StatusCode
execute
(
const
EventContext& ctx)
override
;
33
35
private
:
36
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_truthParticleContainer
{
37
this
,
"TruthParticleContainer"
,
"TruthParticles"
,
"the truth particle container to use for the calculation"
};
38
40
private
:
41
ToolHandle<PMGTools::ISysTruthWeightTool>
m_sysTruthWeightTool
{
42
this
,
"sysTruthWeightTool"
,
"PMGTools::PMGHFProductionFractionTool"
,
"the systematic truth weight tool"
};
43
45
private
:
46
SysListHandle
m_systematicsList
{
this
};
47
49
private
:
50
SysReadHandle<xAOD::EventInfo>
m_eventInfoHandle
{
51
this
,
"eventInfo"
,
"EventInfo"
,
"the event info object to run on"
};
52
54
private
:
55
SysWriteDecorHandle<float>
m_decoration
{
56
this
,
"decoration"
,
""
,
"the decoration for the truth weights"
};
57
};
58
}
// namespace CP
59
60
#endif
AnaAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TruthParticleContainer.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
an algorithm for calling ISysTruthWeightTool
Definition
SysTruthWeightAlg.h:23
CP::SysTruthWeightAlg::m_sysTruthWeightTool
ToolHandle< PMGTools::ISysTruthWeightTool > m_sysTruthWeightTool
the tool
Definition
SysTruthWeightAlg.h:41
CP::SysTruthWeightAlg::initialize
StatusCode initialize() override
Definition
SysTruthWeightAlg.cxx:21
CP::SysTruthWeightAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition
SysTruthWeightAlg.h:46
CP::SysTruthWeightAlg::m_decoration
SysWriteDecorHandle< float > m_decoration
the decoration for the truth weights
Definition
SysTruthWeightAlg.h:55
CP::SysTruthWeightAlg::m_truthParticleContainer
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticleContainer
the truth particle container to use for the calculation
Definition
SysTruthWeightAlg.h:36
CP::SysTruthWeightAlg::m_eventInfoHandle
SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event collection we run on
Definition
SysTruthWeightAlg.h:50
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
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
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