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
20
22
23 namespace CP {
24
27
29
31 public:
33 virtual StatusCode initialize() override;
34 virtual StatusCode execute() override;
35
36 private:
37
39 Gaudi::Property<unsigned int> m_runNumberRef {this, "runNumber", 0, "runNumber to compare"};
40
42 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)"};
43
45 Gaudi::Property<std::string> m_sign {this, "sign", "SetMe", "comparison sign to use"};
46
49
52
55 this, "eventInfo", "EventInfo", "the EventInfo container to read selection decisions from"
56 };
57
60 this, "eventPreselection", "SetMe", "name of the preselection to check before applying this one"
61 };
62
65 this, "decorationName", "SetMe", "decoration name for the RunNumber selector"
66 };
67
68 }; // class
69 } // namespace CP
70
71#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
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