ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
EventSelectionAlgorithms
EventSelectionAlgorithms
SumNLeptonPtSelectorAlg.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_SUMNLEPTONPTSELECTORALG_H
8
#define EVENT_SELECTOR_SUMNLEPTONPTSELECTORALG_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 <
xAODBase/IParticleContainer.h
>
19
#include <
xAODEventInfo/EventInfo.h
>
20
21
#include <
EventSelectionAlgorithms/SignEnums.h
>
22
23
namespace
CP
{
24
27
28
class
SumNLeptonPtSelectorAlg
final :
public
EL::AnaAlgorithm
{
29
31
public
:
32
SumNLeptonPtSelectorAlg
(
const
std::string &
name
, ISvcLocator *pSvcLocator);
33
virtual
StatusCode
initialize
()
override
;
34
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
35
36
private
:
37
39
Gaudi::Property<float>
m_elptmin
{
this
,
"minPtEl"
, 0.,
"minimum electron pT (in MeV)"
};
40
42
Gaudi::Property<float>
m_muptmin
{
this
,
"minPtMu"
, 0.,
"minimum muon pT (in MeV)"
};
43
45
Gaudi::Property<float>
m_tauptmin
{
this
,
"minPtTau"
, 0.,
"minimum tau pT (in MeV)"
};
46
48
Gaudi::Property<std::string>
m_sign
{
this
,
"sign"
,
"SetMe"
,
"comparison sign to use"
};
49
51
Gaudi::Property<int>
m_count
{
this
,
"count"
, 0,
"count value"
};
52
54
Gaudi::Property<bool>
m_useDressedProperties
{
this
,
"useDressedProperties"
,
false
,
55
"whether to use dressed lepton kinematics rather than simple P4 kinematics"
};
56
58
SignEnum::ComparisonOperator
m_signEnum
{};
59
61
CP::SysListHandle
m_systematicsList
{
this
};
62
64
CP::SysReadHandle<xAOD::IParticleContainer>
m_electronsHandle
{
65
this
,
"electrons"
,
""
,
"the electron container to use"
66
};
67
69
CP::SysReadSelectionHandle
m_electronSelection
{
70
this
,
"electronSelection"
,
""
,
"the selection on the input electrons"
71
};
72
74
CP::SysReadHandle<xAOD::IParticleContainer>
m_muonsHandle
{
75
this
,
"muons"
,
""
,
"the muon container to use"
76
};
77
79
CP::SysReadSelectionHandle
m_muonSelection
{
80
this
,
"muonSelection"
,
""
,
"the selection on the input muons"
81
};
82
84
CP::SysReadHandle<xAOD::IParticleContainer>
m_tausHandle
{
85
this
,
"taus"
,
""
,
"the taus container to use"
86
};
87
89
CP::SysReadSelectionHandle
m_tauSelection
{
90
this
,
"tauSelection"
,
""
,
"the selection on the input taus"
91
};
92
94
CP::SysReadHandle<xAOD::EventInfo>
m_eventInfoHandle
{
95
this
,
"eventInfo"
,
"EventInfo"
,
"the EventInfo container to read selection decisions from"
96
};
97
99
CP::SysReadSelectionHandle
m_preselection
{
100
this
,
"eventPreselection"
,
"SetMe"
,
"name of the preselection to check before applying this one"
101
};
102
104
CP::SysWriteSelectionHandle
m_decoration
{
105
this
,
"decorationName"
,
"SetMe"
,
"decoration name for the NObjects selector"
106
};
107
108
};
// class
109
}
// namespace CP
110
111
#endif
// EVENT_SELECTOR_SUMNLEPTONPTSELECTORALG_H
AnaAlgorithm.h
PropertyWrapper.h
SignEnums.h
SysReadHandle.h
SysReadSelectionHandle.h
SysWriteSelectionHandle.h
CP::SumNLeptonPtSelectorAlg::m_systematicsList
CP::SysListHandle m_systematicsList
the systematics list
Definition
SumNLeptonPtSelectorAlg.h:61
CP::SumNLeptonPtSelectorAlg::m_muonSelection
CP::SysReadSelectionHandle m_muonSelection
the muons selection
Definition
SumNLeptonPtSelectorAlg.h:79
CP::SumNLeptonPtSelectorAlg::m_count
Gaudi::Property< int > m_count
the count of events desired
Definition
SumNLeptonPtSelectorAlg.h:51
CP::SumNLeptonPtSelectorAlg::m_muptmin
Gaudi::Property< float > m_muptmin
the pT threshold on which to select electrons
Definition
SumNLeptonPtSelectorAlg.h:42
CP::SumNLeptonPtSelectorAlg::m_tausHandle
CP::SysReadHandle< xAOD::IParticleContainer > m_tausHandle
the taus handle
Definition
SumNLeptonPtSelectorAlg.h:84
CP::SumNLeptonPtSelectorAlg::m_sign
Gaudi::Property< std::string > m_sign
the sign against which to compare pT (GT, LT, etc)
Definition
SumNLeptonPtSelectorAlg.h:48
CP::SumNLeptonPtSelectorAlg::m_signEnum
SignEnum::ComparisonOperator m_signEnum
the operator version of the comparison (>, <, etc)
Definition
SumNLeptonPtSelectorAlg.h:58
CP::SumNLeptonPtSelectorAlg::m_electronSelection
CP::SysReadSelectionHandle m_electronSelection
the electrons selection
Definition
SumNLeptonPtSelectorAlg.h:69
CP::SumNLeptonPtSelectorAlg::m_tauptmin
Gaudi::Property< float > m_tauptmin
the pT threshold on which to select taus
Definition
SumNLeptonPtSelectorAlg.h:45
CP::SumNLeptonPtSelectorAlg::m_elptmin
Gaudi::Property< float > m_elptmin
the pT threshold on which to select electrons
Definition
SumNLeptonPtSelectorAlg.h:39
CP::SumNLeptonPtSelectorAlg::m_decoration
CP::SysWriteSelectionHandle m_decoration
the output selection decoration
Definition
SumNLeptonPtSelectorAlg.h:104
CP::SumNLeptonPtSelectorAlg::m_electronsHandle
CP::SysReadHandle< xAOD::IParticleContainer > m_electronsHandle
the electrons handle
Definition
SumNLeptonPtSelectorAlg.h:64
CP::SumNLeptonPtSelectorAlg::m_tauSelection
CP::SysReadSelectionHandle m_tauSelection
the taus selection
Definition
SumNLeptonPtSelectorAlg.h:89
CP::SumNLeptonPtSelectorAlg::initialize
virtual StatusCode initialize() override
Definition
SumNLeptonPtSelectorAlg.cxx:15
CP::SumNLeptonPtSelectorAlg::SumNLeptonPtSelectorAlg
SumNLeptonPtSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Definition
SumNLeptonPtSelectorAlg.cxx:11
CP::SumNLeptonPtSelectorAlg::m_useDressedProperties
Gaudi::Property< bool > m_useDressedProperties
use dressed kinematics
Definition
SumNLeptonPtSelectorAlg.h:54
CP::SumNLeptonPtSelectorAlg::m_preselection
CP::SysReadSelectionHandle m_preselection
the preselection
Definition
SumNLeptonPtSelectorAlg.h:99
CP::SumNLeptonPtSelectorAlg::m_eventInfoHandle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
Definition
SumNLeptonPtSelectorAlg.h:94
CP::SumNLeptonPtSelectorAlg::m_muonsHandle
CP::SysReadHandle< xAOD::IParticleContainer > m_muonsHandle
the muons handle
Definition
SumNLeptonPtSelectorAlg.h:74
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
SignEnum::ComparisonOperator
ComparisonOperator
all possible comparison user inputs
Definition
SignEnums.h:18
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
IParticleContainer.h
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0