|
ATLAS Offline Software
|
Go to the documentation of this file.
45 return StatusCode::SUCCESS;
59 const EventContext& ctx = Gaudi::Hive::currentContext();
92 dec_jets_OR(*
jet) =
true;
103 for (
const auto*
muon : *muons) {
107 dec_muons_OR(*
muon) =
true;
111 for (
const auto*
photon : *photons) {
115 dec_photons_OR(*
photon) =
true;
130 for (
const auto*
jet : *
jets) {
134 for (
const auto*
muon : *muons) {
137 if (dec_muons_OR(*
muon)) {
139 TLorentzVector dressed_muon;
140 dressed_muon.SetPtEtaPhiE(
141 acc_pt_dressed(*
muon), acc_eta_dressed(*
muon),
142 acc_phi_dressed(*
muon), acc_e_dressed(*
muon));
144 dec_muons_OR(*
muon) =
false;
147 dec_muons_OR(*
muon) =
false;
158 TLorentzVector dressed_electron;
159 dressed_electron.SetPtEtaPhiE(
163 dec_electrons_OR(*
electron) =
false;
166 dec_electrons_OR(*
electron) =
false;
172 for (
const auto*
photon : *photons) {
175 if (dec_photons_OR(*
photon)) {
177 dec_jets_OR(*
jet) =
false;
183 return StatusCode::SUCCESS;
StatusCode initialize()
initialize the accessor
Gaudi::Property< bool > m_doJetPhotonOR
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decORelectron
CP::SelectionReadHandle m_photonSelection
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_muonsKey
float dressedDeltaR(const xAOD::Jet *p1, TLorentzVector &p2, bool useRapidity)
SG::ReadHandleKey< xAOD::JetContainer > m_jetsKey
Helper class to provide constant type-safe access to aux data.
const std::string & key() const
Return the StoreGate ID for the referenced object.
bool empty() const
Test if the key is blank.
Select isolated Photons, Electrons and Muons.
CP::SelectionReadHandle m_muonSelection
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
bool empty() const noexcept
whether we have a name configured
double deltaR(double rapidity1, double phi1, double rapidity2, double phi2)
from bare bare rapidity,phi
::StatusCode StatusCode
StatusCode definition for legacy code.
Handle class for adding a decoration to an object.
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decORphoton
Gaudi::Property< bool > m_doJetElectronOR
CP::SelectionReadHandle m_electronSelection
Gaudi::Property< std::string > m_decLabelOR
Gaudi::Property< bool > m_doJetMuonOR
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
CP::SelectionReadHandle m_jetSelection
Gaudi::Property< bool > m_useRapidity
bool getBool(const SG::AuxElement &element) const
get the selection as a bool
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_electronsKey
virtual StatusCode execute() final
Gaudi::Property< bool > m_useDressedProperties
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_photonsKey
virtual StatusCode initialize() final
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decORmuon
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decORjet