ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
EventSelectionAlgorithms
EventSelectionAlgorithms
NObjectMassSelectorAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
#ifndef EVENT_SELECTOR_NOBJECTMASSELECTORALG_H
8
#define EVENT_SELECTOR_NOBJECTMASSELECTORALG_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
NObjectMassSelectorAlg
final :
public
EL::AnaAlgorithm
{
30
32
public
:
33
NObjectMassSelectorAlg
(
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_minmass
{
this
,
"minMass"
, 0.,
"minimum mass (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
SignEnum::ComparisonOperator
m_signEnum
{};
50
52
CP::SysListHandle
m_systematicsList
{
this
};
53
55
CP::SysReadHandle<xAOD::IParticleContainer>
m_objectsHandle
{
56
this
,
"particles"
,
""
,
"the particle container to use"
57
};
58
60
CP::SysReadSelectionHandle
m_objectSelection
{
61
this
,
"objectSelection"
,
""
,
"the selection on the input particles"
62
};
63
65
CP::SysReadHandle<xAOD::EventInfo>
m_eventInfoHandle
{
66
this
,
"eventInfo"
,
"EventInfo"
,
"the EventInfo container to read selection decisions from"
67
};
68
70
CP::SysReadSelectionHandle
m_preselection
{
71
this
,
"eventPreselection"
,
"SetMe"
,
"name of the preselection to check before applying this one"
72
};
73
75
CP::SysWriteSelectionHandle
m_decoration
{
76
this
,
"decorationName"
,
"SetMe"
,
"decoration name for the NObjects selector"
77
};
78
79
};
// class
80
}
// namespace CP
81
82
#endif
// EVENT_SELECTOR_NOBJECTMASSELECTORALG_H
AnaAlgorithm.h
IParticle.h
PropertyWrapper.h
SignEnums.h
SysReadHandle.h
SysReadSelectionHandle.h
SysWriteSelectionHandle.h
CP::NObjectMassSelectorAlg::m_count
Gaudi::Property< int > m_count
the count of events desired
Definition
NObjectMassSelectorAlg.h:46
CP::NObjectMassSelectorAlg::m_preselection
CP::SysReadSelectionHandle m_preselection
the preselection
Definition
NObjectMassSelectorAlg.h:70
CP::NObjectMassSelectorAlg::m_eventInfoHandle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
Definition
NObjectMassSelectorAlg.h:65
CP::NObjectMassSelectorAlg::m_decoration
CP::SysWriteSelectionHandle m_decoration
the output selection decoration
Definition
NObjectMassSelectorAlg.h:75
CP::NObjectMassSelectorAlg::m_minmass
Gaudi::Property< float > m_minmass
the pT threshold on which to select
Definition
NObjectMassSelectorAlg.h:40
CP::NObjectMassSelectorAlg::m_objectsHandle
CP::SysReadHandle< xAOD::IParticleContainer > m_objectsHandle
the object input handle
Definition
NObjectMassSelectorAlg.h:55
CP::NObjectMassSelectorAlg::NObjectMassSelectorAlg
NObjectMassSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Definition
NObjectMassSelectorAlg.cxx:11
CP::NObjectMassSelectorAlg::m_sign
Gaudi::Property< std::string > m_sign
the sign against which to compare pT (GT, LT, etc)
Definition
NObjectMassSelectorAlg.h:43
CP::NObjectMassSelectorAlg::m_systematicsList
CP::SysListHandle m_systematicsList
the systematics list
Definition
NObjectMassSelectorAlg.h:52
CP::NObjectMassSelectorAlg::m_signEnum
SignEnum::ComparisonOperator m_signEnum
the operator version of the comparison (>, <, etc)
Definition
NObjectMassSelectorAlg.h:49
CP::NObjectMassSelectorAlg::m_objectSelection
CP::SysReadSelectionHandle m_objectSelection
the object selection handle
Definition
NObjectMassSelectorAlg.h:60
CP::NObjectMassSelectorAlg::initialize
virtual StatusCode initialize() override
Definition
NObjectMassSelectorAlg.cxx:15
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