ATLAS Offline Software
Loading...
Searching...
No Matches
RunNumberSelectorAlg.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_RUNNUMBERSELECTORALG_H
8 #define EVENT_SELECTOR_RUNNUMBERSELECTORALG_H
9
10 // Algorithm includes
16
17 // Framework includes
19
21
22 namespace CP {
23
26
28
30 public:
32 virtual StatusCode initialize() override;
33 virtual StatusCode execute() override;
34
35 private:
36
38 Gaudi::Property<unsigned int> m_runNumberRef {this, "runNumber", 0, "runNumber to compare"};
39
41 Gaudi::Property<bool> m_useRandomRunNumber {this, "useRandomRunNumber", false, "whether to use a random run number (for MC) instead of the actual run number (for data)"};
42
44 Gaudi::Property<std::string> m_sign {this, "sign", "SetMe", "comparison sign to use"};
45
48
51
54 this, "eventInfo", "EventInfo", "the EventInfo container to read selection decisions from"
55 };
56
59 this, "eventPreselection", "SetMe", "name of the preselection to check before applying this one"
60 };
61
64 this, "decorationName", "SetMe", "decoration name for the RunNumber selector"
65 };
66
67 }; // class
68 } // namespace CP
69
70#endif // EVENT_SELECTOR_RUNNUMBERSELECTORALG_H
an algorithm to select an event with 2-lepton mass compared to a specified value
virtual StatusCode initialize() override
Gaudi::Property< unsigned int > m_runNumberRef
the run number against which to compare
virtual StatusCode execute() override
execute this algorithm
CP::SysReadSelectionHandle m_preselection
the preselection
Gaudi::Property< std::string > m_sign
the comparison (GT, LT, etc)
SignEnum::ComparisonOperator m_signEnum
the operator version of the comparison (>, <, etc)
Gaudi::Property< bool > m_useRandomRunNumber
whether to use a random run number
CP::SysWriteSelectionHandle m_decoration
the output selection decoration
CP::SysListHandle m_systematicsList
the systematics
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
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 systematically varied selection properties from objects
a data handle for writing systematically varied selection properties from objects
the (new) base class for EventLoop algorithms
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Select isolated Photons, Electrons and Muons.
ComparisonOperator
all possible comparison user inputs
Definition SignEnums.h:18