ATLAS Offline Software
SumNElNMuPtSelectorAlg.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_SUMNELNMUPTSELECTORALG_H
8 #define EVENT_SELECTOR_SUMNELNMUPTSELECTORALG_H
9 
10 // Algorithm includes
16 
17 // Framework includes
20 
22 
23 namespace CP {
24 
27 
29 
31  public:
32  SumNElNMuPtSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator);
33  virtual StatusCode initialize() override;
34  virtual StatusCode execute() override;
35 
36  private:
37 
39  Gaudi::Property<float> m_elptmin {this, "minPtEl", 0., "minimum electron pT (in MeV)"};
40 
42  Gaudi::Property<float> m_muptmin {this, "minPtMu", 0., "minimum muon pT (in MeV)"};
43 
45  Gaudi::Property<std::string> m_sign {this, "sign", "SetMe", "comparison sign to use"};
46 
48  Gaudi::Property<int> m_count {this, "count", 0, "count value"};
49 
52 
55 
58  this, "electrons", "", "the electron container to use"
59  };
60 
63  this, "electronSelection", "", "the selection on the input electrons"
64  };
65 
68  this, "muons", "", "the muon container to use"
69  };
70 
73  this, "muonSelection", "", "the selection on the input muons"
74  };
75 
78  this, "eventInfo", "EventInfo", "the EventInfo container to read selection decisions from"
79  };
80 
83  this, "eventPreselection", "SetMe", "name of the preselection to check before applying this one"
84  };
85 
88  this, "decorationName", "SetMe", "decoration name for the NObjects selector"
89  };
90 
91  }; // class
92 } // namespace CP
93 
94 #endif // EVENT_SELECTOR_SUMNELNMUPTSELECTORALG_H
PropertyWrapper.h
SignEnums.h
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
CP::SumNElNMuPtSelectorAlg::m_count
Gaudi::Property< int > m_count
the count of events desired
Definition: SumNElNMuPtSelectorAlg.h:48
SysWriteSelectionHandle.h
CP::SumNElNMuPtSelectorAlg::m_sign
Gaudi::Property< std::string > m_sign
the sign against which to compare pT (GT, LT, etc)
Definition: SumNElNMuPtSelectorAlg.h:45
CP::SumNElNMuPtSelectorAlg::m_electronsHandle
CP::SysReadHandle< xAOD::IParticleContainer > m_electronsHandle
the electrons handle
Definition: SumNElNMuPtSelectorAlg.h:57
CP::SumNElNMuPtSelectorAlg::m_systematicsList
CP::SysListHandle m_systematicsList
the systematics list
Definition: SumNElNMuPtSelectorAlg.h:54
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
SysReadHandle.h
CP::SumNElNMuPtSelectorAlg::SumNElNMuPtSelectorAlg
SumNElNMuPtSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Definition: SumNElNMuPtSelectorAlg.cxx:11
CP::SumNElNMuPtSelectorAlg
an algorithm to select an event with a specified number of electrons or muons compared to a transvers...
Definition: SumNElNMuPtSelectorAlg.h:28
AnaAlgorithm.h
CP::SumNElNMuPtSelectorAlg::execute
virtual StatusCode execute() override
Definition: SumNElNMuPtSelectorAlg.cxx:31
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::SumNElNMuPtSelectorAlg::m_electronSelection
CP::SysReadSelectionHandle m_electronSelection
the electrons selection
Definition: SumNElNMuPtSelectorAlg.h:62
CP::SumNElNMuPtSelectorAlg::m_preselection
CP::SysReadSelectionHandle m_preselection
the preselection
Definition: SumNElNMuPtSelectorAlg.h:82
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
SysReadSelectionHandle.h
EventInfo.h
CP::SumNElNMuPtSelectorAlg::m_elptmin
Gaudi::Property< float > m_elptmin
the pT threshold on which to select electrons
Definition: SumNElNMuPtSelectorAlg.h:39
CP::SumNElNMuPtSelectorAlg::initialize
virtual StatusCode initialize() override
Definition: SumNElNMuPtSelectorAlg.cxx:15
CP::SumNElNMuPtSelectorAlg::m_decoration
CP::SysWriteSelectionHandle m_decoration
the output selection decoration
Definition: SumNElNMuPtSelectorAlg.h:87
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition: SysReadSelectionHandle.h:32
CP::SumNElNMuPtSelectorAlg::m_muptmin
Gaudi::Property< float > m_muptmin
the pT threshold on which to select electrons
Definition: SumNElNMuPtSelectorAlg.h:42
CP::SumNElNMuPtSelectorAlg::m_muonSelection
CP::SysReadSelectionHandle m_muonSelection
the muons selection
Definition: SumNElNMuPtSelectorAlg.h:72
CP::SumNElNMuPtSelectorAlg::m_eventInfoHandle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
Definition: SumNElNMuPtSelectorAlg.h:77
CP::SumNElNMuPtSelectorAlg::m_muonsHandle
CP::SysReadHandle< xAOD::IParticleContainer > m_muonsHandle
the muons handle
Definition: SumNElNMuPtSelectorAlg.h:67
CP::SysWriteSelectionHandle
a data handle for writing systematically varied selection properties from objects
Definition: SysWriteSelectionHandle.h:32
CP::SumNElNMuPtSelectorAlg::m_signEnum
SignEnum::ComparisonOperator m_signEnum
the operator version of the comparison (>, <, etc)
Definition: SumNElNMuPtSelectorAlg.h:51