ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
AsgAnalysisAlgorithms
AsgAnalysisAlgorithms
LeptonSFCalculatorAlg.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__LEPTON_SF_CALCULATORALG_H
8
#define ASG__LEPTON_SF_CALCULATORALG_H
9
10
#include <
AnaAlgorithm/AnaAlgorithm.h
>
11
#include <
SystematicsHandles/SysListHandle.h
>
12
#include <
SelectionHelpers/SysReadSelectionHandle.h
>
13
#include <
SystematicsHandles/SysReadHandle.h
>
14
#include <
SystematicsHandles/SysReadDecorHandle.h
>
15
#include <
SystematicsHandles/SysWriteDecorHandle.h
>
16
17
#include <
xAODEgamma/ElectronContainer.h
>
18
#include <
xAODMuon/MuonContainer.h
>
19
#include <
xAODEgamma/PhotonContainer.h
>
20
#include <
xAODTau/TauJetContainer.h
>
21
#include <
xAODEventInfo/EventInfo.h
>
22
23
namespace
CP
{
24
class
LeptonSFCalculatorAlg
:
public
EL::AnaAlgorithm
{
25
public
:
26
using
EL::AnaAlgorithm::AnaAlgorithm
;
27
virtual
StatusCode
initialize
()
final
;
28
virtual
StatusCode
execute
(
const
EventContext& ctx)
final
;
29
30
private
:
31
// systematics
32
CP::SysListHandle
m_systematicsList
{
this
};
33
34
CP::SysReadHandle<xAOD::ElectronContainer>
m_electronsHandle
{
35
this
,
"electrons"
,
""
,
"the electron container to use"
36
};
37
CP::SysReadSelectionHandle
m_electronSelection
{
38
this
,
"electronSelection"
,
""
,
"the selection on the input electrons"
39
};
40
41
CP::SysReadHandle<xAOD::MuonContainer>
m_muonsHandle
{
42
this
,
"muons"
,
""
,
"the muon container to use"
43
};
44
CP::SysReadSelectionHandle
m_muonSelection
{
45
this
,
"muonSelection"
,
""
,
"the selection on the input muons"
46
};
47
48
CP::SysReadHandle<xAOD::PhotonContainer>
m_photonsHandle
{
49
this
,
"photons"
,
""
,
"the photon container to use"
50
};
51
CP::SysReadSelectionHandle
m_photonSelection
{
52
this
,
"photonSelection"
,
""
,
"the selection on the input photons"
53
};
54
55
CP::SysReadHandle<xAOD::TauJetContainer>
m_tausHandle
{
56
this
,
"taus"
,
""
,
"the tau container to use"
57
};
58
CP::SysReadSelectionHandle
m_tauSelection
{
59
this
,
"tauSelection"
,
""
,
"the selection on the input taus"
60
};
61
62
CP::SysReadHandle<xAOD::EventInfo>
m_eventInfoHandle
{
63
this
,
"eventInfo"
,
"EventInfo"
,
"the EventInfo container to decorate selection decisions to"
64
};
65
66
CP::SysReadDecorHandleArray<float>
m_electronSFs
{
67
this
,
"electronSFs"
, {},
"Array of decorated per-electron SFs"
68
};
69
70
CP::SysReadDecorHandleArray<float>
m_muonSFs
{
71
this
,
"muonSFs"
, {},
"Array of decorated per-muon SFs"
72
};
73
74
CP::SysReadDecorHandleArray<float>
m_photonSFs
{
75
this
,
"photonSFs"
, {},
"Array of decorated per-photon SFs"
76
};
77
78
CP::SysReadDecorHandleArray<float>
m_tauSFs
{
79
this
,
"tauSFs"
, {},
"Array of decorated per-tau SFs"
80
};
81
82
CP::SysWriteDecorHandle<float>
m_event_leptonSF
{
83
this
,
"event_leptonSF"
,
"leptonSF_%SYS%"
,
"Decoration for per-event leptonSF"
84
};
85
};
86
87
}
// namespace
88
89
#endif
AnaAlgorithm.h
ElectronContainer.h
PhotonContainer.h
MuonContainer.h
SysListHandle.h
SysReadDecorHandle.h
SysReadHandle.h
SysReadSelectionHandle.h
SysWriteDecorHandle.h
TauJetContainer.h
CP::LeptonSFCalculatorAlg
Definition
LeptonSFCalculatorAlg.h:24
CP::LeptonSFCalculatorAlg::m_tausHandle
CP::SysReadHandle< xAOD::TauJetContainer > m_tausHandle
Definition
LeptonSFCalculatorAlg.h:55
CP::LeptonSFCalculatorAlg::m_photonSFs
CP::SysReadDecorHandleArray< float > m_photonSFs
Definition
LeptonSFCalculatorAlg.h:74
CP::LeptonSFCalculatorAlg::m_muonsHandle
CP::SysReadHandle< xAOD::MuonContainer > m_muonsHandle
Definition
LeptonSFCalculatorAlg.h:41
CP::LeptonSFCalculatorAlg::initialize
virtual StatusCode initialize() final
Definition
LeptonSFCalculatorAlg.cxx:11
CP::LeptonSFCalculatorAlg::m_electronsHandle
CP::SysReadHandle< xAOD::ElectronContainer > m_electronsHandle
Definition
LeptonSFCalculatorAlg.h:34
CP::LeptonSFCalculatorAlg::m_photonSelection
CP::SysReadSelectionHandle m_photonSelection
Definition
LeptonSFCalculatorAlg.h:51
CP::LeptonSFCalculatorAlg::m_tauSFs
CP::SysReadDecorHandleArray< float > m_tauSFs
Definition
LeptonSFCalculatorAlg.h:78
CP::LeptonSFCalculatorAlg::m_event_leptonSF
CP::SysWriteDecorHandle< float > m_event_leptonSF
Definition
LeptonSFCalculatorAlg.h:82
CP::LeptonSFCalculatorAlg::m_systematicsList
CP::SysListHandle m_systematicsList
Definition
LeptonSFCalculatorAlg.h:32
CP::LeptonSFCalculatorAlg::m_muonSelection
CP::SysReadSelectionHandle m_muonSelection
Definition
LeptonSFCalculatorAlg.h:44
CP::LeptonSFCalculatorAlg::m_photonsHandle
CP::SysReadHandle< xAOD::PhotonContainer > m_photonsHandle
Definition
LeptonSFCalculatorAlg.h:48
CP::LeptonSFCalculatorAlg::m_electronSFs
CP::SysReadDecorHandleArray< float > m_electronSFs
Definition
LeptonSFCalculatorAlg.h:66
CP::LeptonSFCalculatorAlg::m_electronSelection
CP::SysReadSelectionHandle m_electronSelection
Definition
LeptonSFCalculatorAlg.h:37
CP::LeptonSFCalculatorAlg::m_tauSelection
CP::SysReadSelectionHandle m_tauSelection
Definition
LeptonSFCalculatorAlg.h:58
CP::LeptonSFCalculatorAlg::m_muonSFs
CP::SysReadDecorHandleArray< float > m_muonSFs
Definition
LeptonSFCalculatorAlg.h:70
CP::LeptonSFCalculatorAlg::m_eventInfoHandle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
Definition
LeptonSFCalculatorAlg.h:62
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
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
CP::SysReadDecorHandleArray
SysHandleArray< SysReadDecorHandle< T > > SysReadDecorHandleArray
Definition
SysReadDecorHandle.h:136
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0