ATLAS Offline Software
Loading...
Searching...
No Matches
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
16
17// Framework includes
23
24namespace CP {
25
28
29 class ChargeSelectorAlg final : public EL::AnaAlgorithm {
30
31 public:
33 ChargeSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator);
34 virtual StatusCode initialize() override;
35 virtual StatusCode execute(const EventContext& ctx) override;
36
37 private:
38
40 Gaudi::Property<bool> m_OSmode {this, "OS", true, "whether to request 2 opposite-sign leptons"};
41
44
47 this, "electrons", "", "the electron container to use"
48 };
49
52 this, "electronSelection", "", "the selection on the input electrons"
53 };
54
57 this, "muons", "", "the muon container to use"
58 };
59
62 this, "muonSelection", "", "the selection on the input muons"
63 };
64
67 this, "taus", "", "the tau-jet container to use"
68 };
69
72 this, "tauSelection", "", "the selection on the input tau-jets"
73 };
74
77 this, "truthElectrons", "", "the truth electron container to use"
78 };
79
82 this, "truthElectronSelection", "", "the selection on the input truth electrons"
83 };
84
87 this, "truthMuons", "", "the truth muon container to use"
88 };
89
92 this, "truthMuonSelection", "", "the selection on the input truth muons"
93 };
94
97 this, "truthTaus", "", "the truth tau container to use"
98 };
99
102 this, "truthTauSelection", "", "the selection on the input truth taus"
103 };
104
107 this, "eventInfo", "EventInfo", "the EventInfo container to read selection decisions from"
108 };
109
112 this, "eventPreselection", "SetMe", "name of the preselection to check before applying this one"
113 };
114
117 this, "decorationName", "SetMe", "decoration name for the MLL selector"
118 };
119
120 }; // class
121} // namespace CP
122
123#endif // EVENT_SELECTOR_CHARGESELECTORALG_H
CP::SysReadSelectionHandle m_tauSelection
the tau-jet selection handle
CP::SysReadSelectionHandle m_electronTruthSelection
the truth electron selection handle
CP::SysReadSelectionHandle m_muonTruthSelection
the truth muon selection handle
CP::SysReadSelectionHandle m_preselection
the preselection
CP::SysReadSelectionHandle m_tauTruthSelection
the truth muon selection handle
CP::SysReadHandle< xAOD::ElectronContainer > m_electronsHandle
the electron input handle
CP::SysReadHandle< xAOD::TruthParticleContainer > m_electronsTruthHandle
the truth electron input handle
CP::SysWriteSelectionHandle m_decoration
the output decoration handle
virtual StatusCode initialize() override
CP::SysReadHandle< xAOD::MuonContainer > m_muonsHandle
the muon input handle
CP::SysReadHandle< xAOD::TruthParticleContainer > m_tausTruthHandle
the truth tau input handle
ChargeSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
CP::SysReadHandle< xAOD::TruthParticleContainer > m_muonsTruthHandle
the truth muon input handle
CP::SysReadHandle< xAOD::TauJetContainer > m_tausHandle
the tau-jet input handle
CP::SysListHandle m_systematicsList
the systematics list
Gaudi::Property< bool > m_OSmode
whether or not to select 2 opposite-sign leptons
CP::SysReadSelectionHandle m_electronSelection
the electron selection handle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
CP::SysReadSelectionHandle m_muonSelection
the muon selection 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
virtual::StatusCode execute()
execute this algorithm
Select isolated Photons, Electrons and Muons.