ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
AsgAnalysisAlgorithms
AsgAnalysisAlgorithms
PileupReweightingAlg.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__PILEUP_REWEIGHTING_ALG_H
9
#define ASG_ANALYSIS_ALGORITHMS__PILEUP_REWEIGHTING_ALG_H
10
11
#include <
xAODEventInfo/EventInfo.h
>
12
#include <
AnaAlgorithm/AnaAlgorithm.h
>
13
#include <
AsgAnalysisInterfaces/IPileupReweightingTool.h
>
14
#include <
SelectionHelpers/OutOfValidityHelper.h
>
15
#include <
SystematicsHandles/SysReadHandle.h
>
16
#include <
SystematicsHandles/SysListHandle.h
>
17
#include <
SystematicsHandles/SysWriteDecorHandle.h
>
18
#include <
AsgTools/PropertyWrapper.h
>
19
#include <
AsgDataHandles/ReadHandleKey.h
>
20
#include <
AsgDataHandles/ReadHandle.h
>
21
#include <
AsgDataHandles/WriteDecorHandleKey.h
>
22
23
namespace
CP
24
{
26
27
class
PileupReweightingAlg
final :
public
EL::AnaAlgorithm
28
{
30
public
:
31
using
EL::AnaAlgorithm::AnaAlgorithm
;
32
StatusCode
initialize
()
override
;
33
StatusCode
execute
(
const
EventContext& ctx)
override
;
34
35
36
38
private
:
39
ToolHandle<IPileupReweightingTool>
m_pileupReweightingTool
{
this
,
"pileupReweightingTool"
,
"PileupReweightingTool"
,
"the pileup reweighting tool we apply"
};
40
42
private
:
43
SysListHandle
m_systematicsList
{
this
};
44
46
private
:
47
CP::SysWriteDecorHandle<float>
m_weightDecorator
{
48
this
,
"pileupWeightDecoration"
,
"PileupWeight_%SYS%"
,
"the decoration for the pileup weight"
};
49
51
private
:
52
CP::SysReadHandle<xAOD::EventInfo>
m_eventInfoHandle
{
53
this
,
"eventInfo"
,
"EventInfo"
,
"the input EventInfo object"
};
54
56
private
:
57
SG::ReadHandleKey<xAOD::EventInfo>
m_baseEventInfoName
{
this
,
"baseEventInfo"
,
"EventInfo"
,
"The name of the original event info. The non-systematic dependent decorations will be applied to this "
58
"object so it should be at least a base of the shallow copies read in by the 'eventInfo' handle. "
59
"The default (and strongly recommended behaviour) is to leave all of these pointed at the central 'EventInfo' object!"
};
60
62
private
:
63
SG::WriteDecorHandleKey<xAOD::EventInfo>
m_correctedScaledAverageMuDecorator
64
{
this
,
"correctedScaledAverageMuDecoration"
,
m_baseEventInfoName
,
""
,
65
"the decoration for the corrected and scaled average interactions per crossing"
};
66
68
private
:
69
SG::WriteDecorHandleKey<xAOD::EventInfo>
m_correctedActualMuDecorator
70
{
this
,
"correctedActualMuDecoration"
,
m_baseEventInfoName
,
""
,
71
"the decoration for the corrected actual interactions per crossing"
};
72
74
private
:
75
SG::WriteDecorHandleKey<xAOD::EventInfo>
m_correctedScaledActualMuDecorator
76
{
this
,
"correctedScaledActualMuDecoration"
,
m_baseEventInfoName
,
""
,
77
"the decoration for the corrected and scaled actual interactions per crossing"
};
78
80
private
:
81
OutOfValidityHelper
m_outOfValidity
{
this
};
82
83
SG::WriteDecorHandleKey<xAOD::EventInfo>
m_decRRNKey
84
{
this
,
"RandomRunNumberKey"
,
m_baseEventInfoName
,
"RandomRunNumber"
,
85
"Name for the RandomRunNumber decoration"
};
86
87
SG::WriteDecorHandleKey<xAOD::EventInfo>
m_decRLBNKey
88
{
this
,
"RandomLumiBlockNumberKey"
,
m_baseEventInfoName
,
"RandomLumiBlockNumber"
,
89
"Name for the RandomLumiBlockNumber decoration"
};
// unsigned int
90
91
SG::WriteDecorHandleKey<xAOD::EventInfo>
m_decHashKey
92
{
this
,
"PRWHashKey"
,
m_baseEventInfoName
,
"PRWHash"
,
93
"Name for the PRWHash decoration"
};
// uint64_t
94
};
95
}
96
97
#endif
AnaAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ReadHandle.h
Handle class for reading from StoreGate.
WriteDecorHandleKey.h
IPileupReweightingTool.h
OutOfValidityHelper.h
PropertyWrapper.h
SysListHandle.h
SysReadHandle.h
SysWriteDecorHandle.h
CP::OutOfValidityHelper
a helper to translate a CP::CorrectionCode into a StatusCode
Definition
OutOfValidityHelper.h:73
CP::PileupReweightingAlg
an algorithm for calling IPileupReweightingTool
Definition
PileupReweightingAlg.h:28
CP::PileupReweightingAlg::m_decRRNKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_decRRNKey
Definition
PileupReweightingAlg.h:84
CP::PileupReweightingAlg::m_correctedScaledAverageMuDecorator
SG::WriteDecorHandleKey< xAOD::EventInfo > m_correctedScaledAverageMuDecorator
the decoration for the corrected and scaled average interactions per crossing
Definition
PileupReweightingAlg.h:64
CP::PileupReweightingAlg::m_weightDecorator
CP::SysWriteDecorHandle< float > m_weightDecorator
the decoration for the pileup weight
Definition
PileupReweightingAlg.h:47
CP::PileupReweightingAlg::m_correctedScaledActualMuDecorator
SG::WriteDecorHandleKey< xAOD::EventInfo > m_correctedScaledActualMuDecorator
the decoration for the corrected and scaled actual interactions per crossing
Definition
PileupReweightingAlg.h:76
CP::PileupReweightingAlg::m_outOfValidity
OutOfValidityHelper m_outOfValidity
the helper for OutOfValidity results
Definition
PileupReweightingAlg.h:81
CP::PileupReweightingAlg::m_eventInfoHandle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the name of the event info object
Definition
PileupReweightingAlg.h:52
CP::PileupReweightingAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition
PileupReweightingAlg.h:43
CP::PileupReweightingAlg::m_decHashKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_decHashKey
Definition
PileupReweightingAlg.h:92
CP::PileupReweightingAlg::m_correctedActualMuDecorator
SG::WriteDecorHandleKey< xAOD::EventInfo > m_correctedActualMuDecorator
the decoration for the corrected actual interactions per crossing
Definition
PileupReweightingAlg.h:70
CP::PileupReweightingAlg::m_decRLBNKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_decRLBNKey
Definition
PileupReweightingAlg.h:88
CP::PileupReweightingAlg::m_baseEventInfoName
SG::ReadHandleKey< xAOD::EventInfo > m_baseEventInfoName
the name of the original event info (this should usually be the same as eventiNfoHandle and EventInfo...
Definition
PileupReweightingAlg.h:57
CP::PileupReweightingAlg::initialize
StatusCode initialize() override
Definition
PileupReweightingAlg.cxx:28
CP::PileupReweightingAlg::m_pileupReweightingTool
ToolHandle< IPileupReweightingTool > m_pileupReweightingTool
the smearing tool
Definition
PileupReweightingAlg.h:39
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
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
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