ATLAS Offline Software
Loading...
Searching...
No Matches
ParticleLevelOverlapRemovalAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#ifndef TRUTH_PARTICLELEVEL_OVERLAPREMOVAL_ALG_H
8#define TRUTH_PARTICLELEVEL_OVERLAPREMOVAL_ALG_H
9
18
19namespace CP {
21 public:
23 virtual StatusCode initialize() final;
24 virtual StatusCode execute(const EventContext &ctx) const final;
25
26 private:
28 this, "jets", "", "the name of the input truth jet container"};
30 this, "electrons", "", "the name of the input truth electrons container"};
32 this, "muons", "", "the name of the input truth muons container"};
34 this, "photons", "", "the name of the input truth photons container"};
36 this, "decORjet", "",
37 "the jet overlap-removal decoration; set by the config block from the "
38 "jet container name and labelOR, do not set directly"};
40 this, "decORelectron", "",
41 "the electron overlap-removal decoration; set by the config block "
42 "from the electron container name and labelOR, do not set directly"};
44 this, "decORmuon", "",
45 "the muon overlap-removal decoration; set by the config block from "
46 "the muon container name and labelOR, do not set directly"};
48 this, "decORphoton", "",
49 "the photon overlap-removal decoration; set by the config block from "
50 "the photon container name and labelOR, do not set directly"};
52 this, "ptDressedElectron", "",
53 "dressed electron pt decoration used for the DeltaR calculation; set "
54 "by the config block from the electron container name, do not set "
55 "directly"};
57 this, "etaDressedElectron", "",
58 "dressed electron eta decoration used for the DeltaR calculation; set "
59 "by the config block from the electron container name, do not set "
60 "directly"};
62 this, "phiDressedElectron", "",
63 "dressed electron phi decoration used for the DeltaR calculation; set "
64 "by the config block from the electron container name, do not set "
65 "directly"};
67 this, "eDressedElectron", "",
68 "dressed electron energy decoration used for the DeltaR calculation; "
69 "set by the config block from the electron container name, do not "
70 "set directly"};
72 this, "ptDressedMuon", "",
73 "dressed muon pt decoration used for the DeltaR calculation; set by "
74 "the config block from the muon container name, do not set directly"};
76 this, "etaDressedMuon", "",
77 "dressed muon eta decoration used for the DeltaR calculation; set by "
78 "the config block from the muon container name, do not set directly"};
80 this, "phiDressedMuon", "",
81 "dressed muon phi decoration used for the DeltaR calculation; set by "
82 "the config block from the muon container name, do not set directly"};
84 this, "eDressedMuon", "",
85 "dressed muon energy decoration used for the DeltaR calculation; set "
86 "by the config block from the muon container name, do not set "
87 "directly"};
89 this, "jetSelection", "", "the selection on the input truth jets"};
91 this, "electronSelection", "",
92 "the selection on the input truth electrons"};
94 this, "muonSelection", "", "the selection on the input truth muons"};
96 this, "photonSelection", "", "the selection on the input truth photons"};
97 Gaudi::Property<bool> m_useRapidity{
98 this, "useRapidityForDeltaR", true,
99 "whether to use rapidity instead of pseudo-rapidity for the calculation "
100 "of DeltaR"};
101 Gaudi::Property<bool> m_useDressedProperties{
102 this, "useDressedProperties", true,
103 "whether to use dressed electron and muon kinematics rather than simple "
104 "P4 kinematics"};
105 Gaudi::Property<bool> m_doJetElectronOR{
106 this, "doJetElectronOR", false,
107 "whether to perform jet-electron overlap removal"};
108 Gaudi::Property<bool> m_doJetMuonOR{
109 this, "doJetMuonOR", false,
110 "whether to perform jet-muon overlap removal"};
111 Gaudi::Property<bool> m_doJetPhotonOR{
112 this, "doJetPhotonOR", false,
113 "whether to perform jet-photon overlap removal"};
114 Gaudi::Property<std::string> m_decLabelOR{
115 this, "labelOR", "passesOR",
116 "decoration to apply to all particles for overlap removal"};
117
118 float dressedDeltaR(const xAOD::Jet* jet, double rapidityOrEta,
119 double phi) const;
120};
121
122} // namespace CP
123
124#endif
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_phiDressedMuonKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_photonsKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decORmuon
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_muonsKey
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_eDressedElectronKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetsKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decORphoton
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_ptDressedElectronKey
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_ptDressedMuonKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decORelectron
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_etaDressedMuonKey
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_phiDressedElectronKey
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_eDressedMuonKey
virtual StatusCode execute(const EventContext &ctx) const final
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decORjet
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_electronsKey
float dressedDeltaR(const xAOD::Jet *jet, double rapidityOrEta, double phi) const
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_etaDressedElectronKey
a data handle for reading selection properties from objects
the base class for EventLoop reentrant algorithms
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Select isolated Photons, Electrons and Muons.
Jet_v1 Jet
Definition of the current "jet version".