ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
EventSelectionAlgorithms
EventSelectionAlgorithms
NObjectPtSelectorAlg.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
#ifndef EVENT_SELECTOR_NOBJECTPTSELECTORALG_H
8
#define EVENT_SELECTOR_NOBJECTPTSELECTORALG_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 <
xAODBase/IParticle.h
>
20
#include <
xAODEventInfo/EventInfo.h
>
21
22
#include <
EventSelectionAlgorithms/SignEnums.h
>
23
24
namespace
CP
{
25
28
29
class
NObjectPtSelectorAlg
final :
public
EL::AnaAlgorithm
{
30
32
public
:
33
NObjectPtSelectorAlg
(
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<float>
m_ptmin
{
this
,
"minPt"
, 0.,
"minimum pT (in MeV)"
};
41
43
Gaudi::Property<std::string>
m_sign
{
this
,
"sign"
,
"SetMe"
,
"comparison sign to use"
};
44
46
Gaudi::Property<int>
m_count
{
this
,
"count"
, 0,
"count value"
};
47
49
Gaudi::Property<bool>
m_useDressedProperties
{
this
,
"useDressedProperties"
,
false
,
50
"whether to use dressed electron and muon kinematics rather than simple "
51
"P4 kinematics"
};
52
54
SignEnum::ComparisonOperator
m_signEnum
{};
55
57
CP::SysListHandle
m_systematicsList
{
this
};
58
60
CP::SysReadHandle<xAOD::IParticleContainer>
m_objectsHandle
{
61
this
,
"particles"
,
""
,
"the particle container to use"
62
};
63
65
CP::SysReadSelectionHandle
m_objectSelection
{
66
this
,
"objectSelection"
,
""
,
"the selection on the input particles"
67
};
68
70
CP::SysReadHandle<xAOD::EventInfo>
m_eventInfoHandle
{
71
this
,
"eventInfo"
,
"EventInfo"
,
"the EventInfo container to read selection decisions from"
72
};
73
75
CP::SysReadSelectionHandle
m_preselection
{
76
this
,
"eventPreselection"
,
"SetMe"
,
"name of the preselection to check before applying this one"
77
};
78
80
CP::SysWriteSelectionHandle
m_decoration
{
81
this
,
"decorationName"
,
"SetMe"
,
"decoration name for the NObjects selector"
82
};
83
84
};
// class
85
}
// namespace CP
86
87
#endif
// EVENT_SELECTOR_NOBJECTPTSELECTORALG_H
AnaAlgorithm.h
IParticle.h
PropertyWrapper.h
SignEnums.h
SysReadHandle.h
SysReadSelectionHandle.h
SysWriteSelectionHandle.h
CP::NObjectPtSelectorAlg::m_useDressedProperties
Gaudi::Property< bool > m_useDressedProperties
use dressed kinematics
Definition
NObjectPtSelectorAlg.h:49
CP::NObjectPtSelectorAlg::m_objectSelection
CP::SysReadSelectionHandle m_objectSelection
the object selection handle
Definition
NObjectPtSelectorAlg.h:65
CP::NObjectPtSelectorAlg::m_objectsHandle
CP::SysReadHandle< xAOD::IParticleContainer > m_objectsHandle
the object input handle
Definition
NObjectPtSelectorAlg.h:60
CP::NObjectPtSelectorAlg::m_sign
Gaudi::Property< std::string > m_sign
the sign against which to compare pT (GT, LT, etc)
Definition
NObjectPtSelectorAlg.h:43
CP::NObjectPtSelectorAlg::initialize
virtual StatusCode initialize() override
Definition
NObjectPtSelectorAlg.cxx:15
CP::NObjectPtSelectorAlg::m_preselection
CP::SysReadSelectionHandle m_preselection
the preselection
Definition
NObjectPtSelectorAlg.h:75
CP::NObjectPtSelectorAlg::m_ptmin
Gaudi::Property< float > m_ptmin
the pT threshold on which to select
Definition
NObjectPtSelectorAlg.h:40
CP::NObjectPtSelectorAlg::m_eventInfoHandle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
Definition
NObjectPtSelectorAlg.h:70
CP::NObjectPtSelectorAlg::NObjectPtSelectorAlg
NObjectPtSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Definition
NObjectPtSelectorAlg.cxx:11
CP::NObjectPtSelectorAlg::m_count
Gaudi::Property< int > m_count
the count of events desired
Definition
NObjectPtSelectorAlg.h:46
CP::NObjectPtSelectorAlg::m_systematicsList
CP::SysListHandle m_systematicsList
the systematics list
Definition
NObjectPtSelectorAlg.h:57
CP::NObjectPtSelectorAlg::m_decoration
CP::SysWriteSelectionHandle m_decoration
the output selection decoration
Definition
NObjectPtSelectorAlg.h:80
CP::NObjectPtSelectorAlg::m_signEnum
SignEnum::ComparisonOperator m_signEnum
the operator version of the comparison (>, <, etc)
Definition
NObjectPtSelectorAlg.h:54
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