ATLAS Offline Software
Loading...
Searching...
No Matches
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
18
19// Framework includes
21
23
24namespace CP {
25
30
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
48
51
54 this, "eventInfo", "EventInfo", "the EventInfo container to read from"
55 };
56
60 this, "floatVariable", "", "EventInfo float decoration to cut on"
61 };
63 this, "intVariable", "", "EventInfo int decoration to cut on"
64 };
66 this, "doubleVariable", "", "EventInfo double decoration to cut on"
67 };
68
71 this, "eventPreselection", "SetMe", "name of the preselection to check before applying this one"
72 };
73
76 this, "decorationName", "SetMe", "decoration name for the EVENTVAR selector"
77 };
78
79 }; // class
80} // namespace CP
81
82#endif // EVENT_SELECTOR_EVENTSCALARSELECTORALG_H
CP::SysReadSelectionHandle m_preselection
the preselection
CP::SysReadDecorHandle< int > m_intVariable
Gaudi::Property< std::string > m_sign
the comparison sign (GT, LT, etc)
Gaudi::Property< float > m_refValue
the reference value against which to compare
CP::SysWriteSelectionHandle m_decoration
the output selection decoration
SignEnum::ComparisonOperator m_signEnum
the operator version of the comparison (>, <, etc)
CP::SysReadDecorHandle< float > m_floatVariable
the EventInfo scalar decoration to cut on; exactly one of the typed handles below is configured,...
CP::SysListHandle m_systematicsList
the systematics list
CP::SysReadDecorHandle< double > m_doubleVariable
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
virtual StatusCode initialize() override
EventScalarSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
a class managing the property to configure the list of systematics to process
a data handle for reading systematics varied input data
a data handle for reading systematics varied input data
a data handle for reading systematically varied selection properties from objects
a data handle for writing systematically varied selection properties from objects
the (new) base class for EventLoop algorithms
virtual::StatusCode execute()
execute this algorithm
Select isolated Photons, Electrons and Muons.
ComparisonOperator
all possible comparison user inputs
Definition SignEnums.h:18