ATLAS Offline Software
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  #include <xAODEventInfo/EventInfo.h>
20 
22 
23  namespace CP {
24 
27 
28  class RunNumberSelectorAlg final : public EL::AnaAlgorithm {
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
CP::RunNumberSelectorAlg
an algorithm to select an event with 2-lepton mass compared to a specified value
Definition: RunNumberSelectorAlg.h:28
PropertyWrapper.h
SignEnums.h
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
CP::RunNumberSelectorAlg::m_eventInfoHandle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
Definition: RunNumberSelectorAlg.h:54
CP::RunNumberSelectorAlg::execute
virtual StatusCode execute() override
Definition: RunNumberSelectorAlg.cxx:22
SysWriteSelectionHandle.h
CP::RunNumberSelectorAlg::m_useRandomRunNumber
Gaudi::Property< bool > m_useRandomRunNumber
whether to use a random run number
Definition: RunNumberSelectorAlg.h:42
CP::SysReadHandle
a data handle for reading systematics varied input data
Definition: SysReadHandle.h:32
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition: AnaAlgorithm.cxx:40
SysReadHandle.h
AnaAlgorithm.h
SignEnum::ComparisonOperator
ComparisonOperator
all possible comparison user inputs
Definition: SignEnums.h:16
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IParticleContainer.h
CP::RunNumberSelectorAlg::m_signEnum
SignEnum::ComparisonOperator m_signEnum
the operator version of the comparison (>, <, etc)
Definition: RunNumberSelectorAlg.h:48
CP::RunNumberSelectorAlg::m_preselection
CP::SysReadSelectionHandle m_preselection
the preselection
Definition: RunNumberSelectorAlg.h:59
CP::RunNumberSelectorAlg::m_runNumberRef
Gaudi::Property< unsigned int > m_runNumberRef
the run number against which to compare
Definition: RunNumberSelectorAlg.h:39
SysReadSelectionHandle.h
CP::RunNumberSelectorAlg::initialize
virtual StatusCode initialize() override
Definition: RunNumberSelectorAlg.cxx:11
EventInfo.h
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition: SysReadSelectionHandle.h:32
CP::RunNumberSelectorAlg::m_systematicsList
CP::SysListHandle m_systematicsList
the systematics
Definition: RunNumberSelectorAlg.h:51
CP::RunNumberSelectorAlg::m_decoration
CP::SysWriteSelectionHandle m_decoration
the output selection decoration
Definition: RunNumberSelectorAlg.h:64
CP::SysWriteSelectionHandle
a data handle for writing systematically varied selection properties from objects
Definition: SysWriteSelectionHandle.h:32
CP::RunNumberSelectorAlg::m_sign
Gaudi::Property< std::string > m_sign
the comparison (GT, LT, etc)
Definition: RunNumberSelectorAlg.h:45