ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
EventSelectionAlgorithms
EventSelectionAlgorithms
EventScalarSelectorAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
#ifndef EVENT_SELECTOR_EVENTSCALARSELECTORALG_H
8
#define EVENT_SELECTOR_EVENTSCALARSELECTORALG_H
9
10
// Algorithm includes
11
#include <
AnaAlgorithm/AnaAlgorithm.h
>
12
#include <
AsgTools/PropertyWrapper.h
>
13
#include <
SystematicsHandles/SysReadHandle.h
>
14
#include <
SystematicsHandles/SysReadDecorHandle.h
>
15
#include <
SystematicsHandles/SysListHandle.h
>
16
#include <
SelectionHelpers/SysReadSelectionHandle.h
>
17
#include <
SelectionHelpers/SysWriteSelectionHandle.h
>
18
19
// Framework includes
20
#include <
xAODEventInfo/EventInfo.h
>
21
22
#include <
EventSelectionAlgorithms/SignEnums.h
>
23
24
namespace
CP
{
25
30
31
class
EventScalarSelectorAlg
final :
public
EL::AnaAlgorithm
{
32
33
public
:
34
EventScalarSelectorAlg
(
const
std::string &
name
, ISvcLocator *pSvcLocator);
35
virtual
StatusCode
initialize
()
override
;
36
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
37
38
private
:
39
41
Gaudi::Property<std::string>
m_sign
{
this
,
"sign"
,
"SetMe"
,
"comparison sign to use"
};
42
44
Gaudi::Property<float>
m_refValue
{
this
,
"refValue"
, 0.,
"reference value to compare against"
};
45
47
SignEnum::ComparisonOperator
m_signEnum
{};
48
50
CP::SysListHandle
m_systematicsList
{
this
};
51
53
CP::SysReadHandle<xAOD::EventInfo>
m_eventInfoHandle
{
54
this
,
"eventInfo"
,
"EventInfo"
,
"the EventInfo container to read from"
55
};
56
59
CP::SysReadDecorHandle<float>
m_floatVariable
{
60
this
,
"floatVariable"
,
""
,
"EventInfo float decoration to cut on"
61
};
62
CP::SysReadDecorHandle<int>
m_intVariable
{
63
this
,
"intVariable"
,
""
,
"EventInfo int decoration to cut on"
64
};
65
CP::SysReadDecorHandle<double>
m_doubleVariable
{
66
this
,
"doubleVariable"
,
""
,
"EventInfo double decoration to cut on"
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 EVENTVAR selector"
77
};
78
79
};
// class
80
}
// namespace CP
81
82
#endif
// EVENT_SELECTOR_EVENTSCALARSELECTORALG_H
AnaAlgorithm.h
PropertyWrapper.h
SignEnums.h
SysListHandle.h
SysReadDecorHandle.h
SysReadHandle.h
SysReadSelectionHandle.h
SysWriteSelectionHandle.h
CP::EventScalarSelectorAlg::m_preselection
CP::SysReadSelectionHandle m_preselection
the preselection
Definition
EventScalarSelectorAlg.h:70
CP::EventScalarSelectorAlg::m_intVariable
CP::SysReadDecorHandle< int > m_intVariable
Definition
EventScalarSelectorAlg.h:62
CP::EventScalarSelectorAlg::m_sign
Gaudi::Property< std::string > m_sign
the comparison sign (GT, LT, etc)
Definition
EventScalarSelectorAlg.h:41
CP::EventScalarSelectorAlg::m_refValue
Gaudi::Property< float > m_refValue
the reference value against which to compare
Definition
EventScalarSelectorAlg.h:44
CP::EventScalarSelectorAlg::m_decoration
CP::SysWriteSelectionHandle m_decoration
the output selection decoration
Definition
EventScalarSelectorAlg.h:75
CP::EventScalarSelectorAlg::m_signEnum
SignEnum::ComparisonOperator m_signEnum
the operator version of the comparison (>, <, etc)
Definition
EventScalarSelectorAlg.h:47
CP::EventScalarSelectorAlg::m_floatVariable
CP::SysReadDecorHandle< float > m_floatVariable
the EventInfo scalar decoration to cut on; exactly one of the typed handles below is configured,...
Definition
EventScalarSelectorAlg.h:59
CP::EventScalarSelectorAlg::m_systematicsList
CP::SysListHandle m_systematicsList
the systematics list
Definition
EventScalarSelectorAlg.h:50
CP::EventScalarSelectorAlg::m_doubleVariable
CP::SysReadDecorHandle< double > m_doubleVariable
Definition
EventScalarSelectorAlg.h:65
CP::EventScalarSelectorAlg::m_eventInfoHandle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
Definition
EventScalarSelectorAlg.h:53
CP::EventScalarSelectorAlg::initialize
virtual StatusCode initialize() override
Definition
EventScalarSelectorAlg.cxx:15
CP::EventScalarSelectorAlg::EventScalarSelectorAlg
EventScalarSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
EventScalarSelectorAlg.cxx:11
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition
SysListHandle.h:33
CP::SysReadDecorHandle
a data handle for reading systematics varied input data
Definition
SysReadDecorHandle.h:34
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
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0