ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
EventSelectionAlgorithms
EventSelectionAlgorithms
ChargeSelectorAlg.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 EVENT_SELECTOR_CHARGESELECTORALG_H
8
#define EVENT_SELECTOR_CHARGESELECTORALG_H
9
10
// Algorithm includes
11
#include <
AnaAlgorithm/AnaAlgorithm.h
>
12
#include <
AsgTools/PropertyWrapper.h
>
13
#include <
SystematicsHandles/SysReadHandle.h
>
14
#include <
SelectionHelpers/SysReadSelectionHandle.h
>
15
#include <
SelectionHelpers/SysWriteSelectionHandle.h
>
16
17
// Framework includes
18
#include <
xAODEgamma/ElectronContainer.h
>
19
#include <
xAODMuon/MuonContainer.h
>
20
#include <
xAODTau/TauJetContainer.h
>
21
#include <
xAODTruth/TruthParticleContainer.h
>
22
#include <
xAODEventInfo/EventInfo.h
>
23
24
namespace
CP
{
25
28
29
class
ChargeSelectorAlg
final :
public
EL::AnaAlgorithm
{
30
31
public
:
33
ChargeSelectorAlg
(
const
std::string &
name
, ISvcLocator *pSvcLocator);
34
virtual
StatusCode
initialize
()
override
;
35
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
36
37
private
:
38
40
Gaudi::Property<bool>
m_OSmode
{
this
,
"OS"
,
true
,
"whether to request 2 opposite-sign leptons"
};
41
43
CP::SysListHandle
m_systematicsList
{
this
};
44
46
CP::SysReadHandle<xAOD::ElectronContainer>
m_electronsHandle
{
47
this
,
"electrons"
,
""
,
"the electron container to use"
48
};
49
51
CP::SysReadSelectionHandle
m_electronSelection
{
52
this
,
"electronSelection"
,
""
,
"the selection on the input electrons"
53
};
54
56
CP::SysReadHandle<xAOD::MuonContainer>
m_muonsHandle
{
57
this
,
"muons"
,
""
,
"the muon container to use"
58
};
59
61
CP::SysReadSelectionHandle
m_muonSelection
{
62
this
,
"muonSelection"
,
""
,
"the selection on the input muons"
63
};
64
66
CP::SysReadHandle<xAOD::TauJetContainer>
m_tausHandle
{
67
this
,
"taus"
,
""
,
"the tau-jet container to use"
68
};
69
71
CP::SysReadSelectionHandle
m_tauSelection
{
72
this
,
"tauSelection"
,
""
,
"the selection on the input tau-jets"
73
};
74
76
CP::SysReadHandle<xAOD::TruthParticleContainer>
m_electronsTruthHandle
{
77
this
,
"truthElectrons"
,
""
,
"the truth electron container to use"
78
};
79
81
CP::SysReadSelectionHandle
m_electronTruthSelection
{
82
this
,
"truthElectronSelection"
,
""
,
"the selection on the input truth electrons"
83
};
84
86
CP::SysReadHandle<xAOD::TruthParticleContainer>
m_muonsTruthHandle
{
87
this
,
"truthMuons"
,
""
,
"the truth muon container to use"
88
};
89
91
CP::SysReadSelectionHandle
m_muonTruthSelection
{
92
this
,
"truthMuonSelection"
,
""
,
"the selection on the input truth muons"
93
};
94
96
CP::SysReadHandle<xAOD::TruthParticleContainer>
m_tausTruthHandle
{
97
this
,
"truthTaus"
,
""
,
"the truth tau container to use"
98
};
99
101
CP::SysReadSelectionHandle
m_tauTruthSelection
{
102
this
,
"truthTauSelection"
,
""
,
"the selection on the input truth taus"
103
};
104
106
CP::SysReadHandle<xAOD::EventInfo>
m_eventInfoHandle
{
107
this
,
"eventInfo"
,
"EventInfo"
,
"the EventInfo container to read selection decisions from"
108
};
109
111
CP::SysReadSelectionHandle
m_preselection
{
112
this
,
"eventPreselection"
,
"SetMe"
,
"name of the preselection to check before applying this one"
113
};
114
116
CP::SysWriteSelectionHandle
m_decoration
{
117
this
,
"decorationName"
,
"SetMe"
,
"decoration name for the MLL selector"
118
};
119
120
};
// class
121
}
// namespace CP
122
123
#endif
// EVENT_SELECTOR_CHARGESELECTORALG_H
AnaAlgorithm.h
ElectronContainer.h
MuonContainer.h
TruthParticleContainer.h
PropertyWrapper.h
SysReadHandle.h
SysReadSelectionHandle.h
SysWriteSelectionHandle.h
TauJetContainer.h
CP::ChargeSelectorAlg::m_tauSelection
CP::SysReadSelectionHandle m_tauSelection
the tau-jet selection handle
Definition
ChargeSelectorAlg.h:71
CP::ChargeSelectorAlg::m_electronTruthSelection
CP::SysReadSelectionHandle m_electronTruthSelection
the truth electron selection handle
Definition
ChargeSelectorAlg.h:81
CP::ChargeSelectorAlg::m_muonTruthSelection
CP::SysReadSelectionHandle m_muonTruthSelection
the truth muon selection handle
Definition
ChargeSelectorAlg.h:91
CP::ChargeSelectorAlg::m_preselection
CP::SysReadSelectionHandle m_preselection
the preselection
Definition
ChargeSelectorAlg.h:111
CP::ChargeSelectorAlg::m_tauTruthSelection
CP::SysReadSelectionHandle m_tauTruthSelection
the truth muon selection handle
Definition
ChargeSelectorAlg.h:101
CP::ChargeSelectorAlg::m_electronsHandle
CP::SysReadHandle< xAOD::ElectronContainer > m_electronsHandle
the electron input handle
Definition
ChargeSelectorAlg.h:46
CP::ChargeSelectorAlg::m_electronsTruthHandle
CP::SysReadHandle< xAOD::TruthParticleContainer > m_electronsTruthHandle
the truth electron input handle
Definition
ChargeSelectorAlg.h:76
CP::ChargeSelectorAlg::m_decoration
CP::SysWriteSelectionHandle m_decoration
the output decoration handle
Definition
ChargeSelectorAlg.h:116
CP::ChargeSelectorAlg::initialize
virtual StatusCode initialize() override
Definition
ChargeSelectorAlg.cxx:15
CP::ChargeSelectorAlg::m_muonsHandle
CP::SysReadHandle< xAOD::MuonContainer > m_muonsHandle
the muon input handle
Definition
ChargeSelectorAlg.h:56
CP::ChargeSelectorAlg::m_tausTruthHandle
CP::SysReadHandle< xAOD::TruthParticleContainer > m_tausTruthHandle
the truth tau input handle
Definition
ChargeSelectorAlg.h:96
CP::ChargeSelectorAlg::ChargeSelectorAlg
ChargeSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Definition
ChargeSelectorAlg.cxx:11
CP::ChargeSelectorAlg::m_muonsTruthHandle
CP::SysReadHandle< xAOD::TruthParticleContainer > m_muonsTruthHandle
the truth muon input handle
Definition
ChargeSelectorAlg.h:86
CP::ChargeSelectorAlg::m_tausHandle
CP::SysReadHandle< xAOD::TauJetContainer > m_tausHandle
the tau-jet input handle
Definition
ChargeSelectorAlg.h:66
CP::ChargeSelectorAlg::m_systematicsList
CP::SysListHandle m_systematicsList
the systematics list
Definition
ChargeSelectorAlg.h:43
CP::ChargeSelectorAlg::m_OSmode
Gaudi::Property< bool > m_OSmode
whether or not to select 2 opposite-sign leptons
Definition
ChargeSelectorAlg.h:40
CP::ChargeSelectorAlg::m_electronSelection
CP::SysReadSelectionHandle m_electronSelection
the electron selection handle
Definition
ChargeSelectorAlg.h:51
CP::ChargeSelectorAlg::m_eventInfoHandle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
Definition
ChargeSelectorAlg.h:106
CP::ChargeSelectorAlg::m_muonSelection
CP::SysReadSelectionHandle m_muonSelection
the muon selection handle
Definition
ChargeSelectorAlg.h:61
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::SysWriteSelectionHandle
a data handle for writing systematically varied selection properties from objects
Definition
SysWriteSelectionHandle.h:32
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