ATLAS Offline Software
ChargeSelectorAlg.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_CHARGESELECTORALG_H
8 #define EVENT_SELECTOR_CHARGESELECTORALG_H
9 
10 // Algorithm includes
18 
19 // Framework includes
21 #include <xAODMuon/MuonContainer.h>
25 
26 namespace CP {
27 
30 
32 
33  public:
35  ChargeSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator);
36  virtual StatusCode initialize() override;
37  virtual StatusCode execute() override;
38 
39  private:
40 
42  Gaudi::Property<bool> m_OSmode {this, "OS", true, "whether to request 2 opposite-sign leptons"};
43 
46 
49  this, "electrons", "", "the electron container to use"
50  };
51 
54  this, "electronSelection", "", "the selection on the input electrons"
55  };
56 
59  this, "muons", "", "the muon container to use"
60  };
61 
64  this, "muonSelection", "", "the selection on the input muons"
65  };
66 
69  this, "taus", "", "the tau-jet container to use"
70  };
71 
74  this, "tauSelection", "", "the selection on the input tau-jets"
75  };
76 
79  this, "truthElectrons", "", "the truth electron container to use"
80  };
81 
84  this, "truthElectronSelection", "", "the selection on the input truth electrons"
85  };
86 
89  this, "truthMuons", "", "the truth muon container to use"
90  };
91 
94  this, "truthMuonSelection", "", "the selection on the input truth muons"
95  };
96 
99  this, "truthTaus", "", "the truth tau container to use"
100  };
101 
104  this, "truthTauSelection", "", "the selection on the input truth taus"
105  };
106 
109  this, "eventInfo", "EventInfo", "the EventInfo container to read selection decisions from"
110  };
111 
114  this, "eventPreselection", "SetMe", "name of the preselection to check before applying this one"
115  };
116 
119  this, "decorationName", "SetMe", "decoration name for the MLL selector"
120  };
121 
122  }; // class
123 } // namespace CP
124 
125 #endif // EVENT_SELECTOR_CHARGESELECTORALG_H
CP::ChargeSelectorAlg::m_electronsHandle
CP::SysReadHandle< xAOD::ElectronContainer > m_electronsHandle
the electron input handle
Definition: ChargeSelectorAlg.h:48
PropertyWrapper.h
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
SysWriteDecorHandle.h
SysWriteSelectionHandle.h
TruthParticleContainer.h
CP::ChargeSelectorAlg::initialize
virtual StatusCode initialize() override
Definition: ChargeSelectorAlg.cxx:15
CP::ChargeSelectorAlg::m_muonsTruthHandle
CP::SysReadHandle< xAOD::TruthParticleContainer > m_muonsTruthHandle
the truth muon input handle
Definition: ChargeSelectorAlg.h:88
CP::ChargeSelectorAlg::m_tauTruthSelection
CP::SysReadSelectionHandle m_tauTruthSelection
the truth muon selection handle
Definition: ChargeSelectorAlg.h:103
CP::SysReadHandle< xAOD::ElectronContainer >
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:49
SysReadHandle.h
CP::ChargeSelectorAlg::m_electronSelection
CP::SysReadSelectionHandle m_electronSelection
the electron selection handle
Definition: ChargeSelectorAlg.h:53
CP::ChargeSelectorAlg::m_muonsHandle
CP::SysReadHandle< xAOD::MuonContainer > m_muonsHandle
the muon input handle
Definition: ChargeSelectorAlg.h:58
AnaAlgorithm.h
CP::ChargeSelectorAlg::m_preselection
CP::SysReadSelectionHandle m_preselection
the preselection
Definition: ChargeSelectorAlg.h:113
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
CP::ChargeSelectorAlg::ChargeSelectorAlg
ChargeSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Definition: ChargeSelectorAlg.cxx:11
ElectronContainer.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::ChargeSelectorAlg::execute
virtual StatusCode execute() override
Definition: ChargeSelectorAlg.cxx:37
TauJetContainer.h
columnar::final
CM final
Definition: ColumnAccessor.h:106
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
SysReadSelectionHandle.h
CP::ChargeSelectorAlg::m_decoration
CP::SysWriteSelectionHandle m_decoration
the output decoration handle
Definition: ChargeSelectorAlg.h:118
EventInfo.h
MuonContainer.h
CP::ChargeSelectorAlg::m_eventInfoHandle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
Definition: ChargeSelectorAlg.h:108
CP::ChargeSelectorAlg::m_tauSelection
CP::SysReadSelectionHandle m_tauSelection
the tau-jet selection handle
Definition: ChargeSelectorAlg.h:73
CP::ChargeSelectorAlg::m_muonSelection
CP::SysReadSelectionHandle m_muonSelection
the muon selection handle
Definition: ChargeSelectorAlg.h:63
CP::ChargeSelectorAlg::m_OSmode
Gaudi::Property< bool > m_OSmode
whether or not to select 2 opposite-sign leptons
Definition: ChargeSelectorAlg.h:42
SysReadDecorHandle.h
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition: SysReadSelectionHandle.h:32
CP::ChargeSelectorAlg::m_electronTruthSelection
CP::SysReadSelectionHandle m_electronTruthSelection
the truth electron selection handle
Definition: ChargeSelectorAlg.h:83
CP::ChargeSelectorAlg::m_tausTruthHandle
CP::SysReadHandle< xAOD::TruthParticleContainer > m_tausTruthHandle
the truth tau input handle
Definition: ChargeSelectorAlg.h:98
CP::ChargeSelectorAlg::m_muonTruthSelection
CP::SysReadSelectionHandle m_muonTruthSelection
the truth muon selection handle
Definition: ChargeSelectorAlg.h:93
CP::ChargeSelectorAlg::m_tausHandle
CP::SysReadHandle< xAOD::TauJetContainer > m_tausHandle
the tau-jet input handle
Definition: ChargeSelectorAlg.h:68
CP::ChargeSelectorAlg::m_electronsTruthHandle
CP::SysReadHandle< xAOD::TruthParticleContainer > m_electronsTruthHandle
the truth electron input handle
Definition: ChargeSelectorAlg.h:78
CP::ChargeSelectorAlg
an algorithm that selects an event if the event has leptons with opposite sign or same sign
Definition: ChargeSelectorAlg.h:31
CP::SysWriteSelectionHandle
a data handle for writing systematically varied selection properties from objects
Definition: SysWriteSelectionHandle.h:32
CP::ChargeSelectorAlg::m_systematicsList
CP::SysListHandle m_systematicsList
the systematics list
Definition: ChargeSelectorAlg.h:45