ATLAS Offline Software
SumNLeptonPtSelectorAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 #ifndef EVENT_SELECTOR_SUMNLEPTONPTSELECTORALG_H
8 #define EVENT_SELECTOR_SUMNLEPTONPTSELECTORALG_H
9 
10 // Algorithm includes
16 
17 // Framework includes
20 
22 
23 namespace CP {
24 
27 
29 
31  public:
32  SumNLeptonPtSelectorAlg(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<float> m_tauptmin {this, "minPtTau", 0., "minimum tau pT (in MeV)"};
46 
48  Gaudi::Property<std::string> m_sign {this, "sign", "SetMe", "comparison sign to use"};
49 
51  Gaudi::Property<int> m_count {this, "count", 0, "count value"};
52 
54  Gaudi::Property<bool> m_useDressedProperties{this, "useDressedProperties", false,
55  "whether to use dressed lepton kinematics rather than simple P4 kinematics"};
56 
59 
62 
65  this, "electrons", "", "the electron container to use"
66  };
67 
70  this, "electronSelection", "", "the selection on the input electrons"
71  };
72 
75  this, "muons", "", "the muon container to use"
76  };
77 
80  this, "muonSelection", "", "the selection on the input muons"
81  };
82 
85  this, "taus", "", "the taus container to use"
86  };
87 
90  this, "tauSelection", "", "the selection on the input taus"
91  };
92 
95  this, "eventInfo", "EventInfo", "the EventInfo container to read selection decisions from"
96  };
97 
100  this, "eventPreselection", "SetMe", "name of the preselection to check before applying this one"
101  };
102 
105  this, "decorationName", "SetMe", "decoration name for the NObjects selector"
106  };
107 
108  }; // class
109 } // namespace CP
110 
111 #endif // EVENT_SELECTOR_SUMNLEPTONPTSELECTORALG_H
CP::SumNLeptonPtSelectorAlg::m_muonSelection
CP::SysReadSelectionHandle m_muonSelection
the muons selection
Definition: SumNLeptonPtSelectorAlg.h:79
CP::SumNLeptonPtSelectorAlg::m_sign
Gaudi::Property< std::string > m_sign
the sign against which to compare pT (GT, LT, etc)
Definition: SumNLeptonPtSelectorAlg.h:48
PropertyWrapper.h
SignEnums.h
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
CP::SumNLeptonPtSelectorAlg::SumNLeptonPtSelectorAlg
SumNLeptonPtSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Definition: SumNLeptonPtSelectorAlg.cxx:11
CP::SumNLeptonPtSelectorAlg::m_tauSelection
CP::SysReadSelectionHandle m_tauSelection
the taus selection
Definition: SumNLeptonPtSelectorAlg.h:89
CP::SumNLeptonPtSelectorAlg::m_electronSelection
CP::SysReadSelectionHandle m_electronSelection
the electrons selection
Definition: SumNLeptonPtSelectorAlg.h:69
SysWriteSelectionHandle.h
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:49
SysReadHandle.h
CP::SumNLeptonPtSelectorAlg::m_decoration
CP::SysWriteSelectionHandle m_decoration
the output selection decoration
Definition: SumNLeptonPtSelectorAlg.h:104
CP::SumNLeptonPtSelectorAlg::execute
virtual StatusCode execute() override
Definition: SumNLeptonPtSelectorAlg.cxx:33
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
CP::SumNLeptonPtSelectorAlg::m_muptmin
Gaudi::Property< float > m_muptmin
the pT threshold on which to select electrons
Definition: SumNLeptonPtSelectorAlg.h:42
CP::SumNLeptonPtSelectorAlg::m_tauptmin
Gaudi::Property< float > m_tauptmin
the pT threshold on which to select taus
Definition: SumNLeptonPtSelectorAlg.h:45
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IParticleContainer.h
CP::SumNLeptonPtSelectorAlg::m_electronsHandle
CP::SysReadHandle< xAOD::IParticleContainer > m_electronsHandle
the electrons handle
Definition: SumNLeptonPtSelectorAlg.h:64
CP::SumNLeptonPtSelectorAlg::m_signEnum
SignEnum::ComparisonOperator m_signEnum
the operator version of the comparison (>, <, etc)
Definition: SumNLeptonPtSelectorAlg.h:58
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SysReadSelectionHandle.h
EventInfo.h
CP::SumNLeptonPtSelectorAlg::m_muonsHandle
CP::SysReadHandle< xAOD::IParticleContainer > m_muonsHandle
the muons handle
Definition: SumNLeptonPtSelectorAlg.h:74
CP::SumNLeptonPtSelectorAlg::m_systematicsList
CP::SysListHandle m_systematicsList
the systematics list
Definition: SumNLeptonPtSelectorAlg.h:61
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition: SysReadSelectionHandle.h:32
CP::SumNLeptonPtSelectorAlg::m_count
Gaudi::Property< int > m_count
the count of events desired
Definition: SumNLeptonPtSelectorAlg.h:51
CP::SumNLeptonPtSelectorAlg::m_eventInfoHandle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
Definition: SumNLeptonPtSelectorAlg.h:94
CP::SumNLeptonPtSelectorAlg
an algorithm to select an event with a specified number of electrons, muons or taus compared to a tra...
Definition: SumNLeptonPtSelectorAlg.h:28
CP::SysWriteSelectionHandle
a data handle for writing systematically varied selection properties from objects
Definition: SysWriteSelectionHandle.h:32
CP::SumNLeptonPtSelectorAlg::m_elptmin
Gaudi::Property< float > m_elptmin
the pT threshold on which to select electrons
Definition: SumNLeptonPtSelectorAlg.h:39
CP::SumNLeptonPtSelectorAlg::initialize
virtual StatusCode initialize() override
Definition: SumNLeptonPtSelectorAlg.cxx:15
CP::SumNLeptonPtSelectorAlg::m_tausHandle
CP::SysReadHandle< xAOD::IParticleContainer > m_tausHandle
the taus handle
Definition: SumNLeptonPtSelectorAlg.h:84
CP::SumNLeptonPtSelectorAlg::m_useDressedProperties
Gaudi::Property< bool > m_useDressedProperties
use dressed kinematics
Definition: SumNLeptonPtSelectorAlg.h:54
CP::SumNLeptonPtSelectorAlg::m_preselection
CP::SysReadSelectionHandle m_preselection
the preselection
Definition: SumNLeptonPtSelectorAlg.h:99