ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
FlavorTagJetDecorators
src
SoftElectronSelectionAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef SOFT_ELECTRON_SELECTION_ALG_HH
6
#define SOFT_ELECTRON_SELECTION_ALG_HH
7
8
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
9
#include "
StoreGate/ReadHandleKey.h
"
10
#include "
StoreGate/ReadDecorHandleKey.h
"
11
#include "
StoreGate/WriteDecorHandleKey.h
"
12
13
#include "
xAODBase/IParticleContainer.h
"
14
#include "
xAODJet/JetContainer.h
"
15
#include "
xAODEgamma/ElectronContainer.h
"
16
17
namespace
FlavorTagJetDecorators
{
18
26
27
class
SoftElectronSelectionAlg
:
public
AthReentrantAlgorithm
{
28
public
:
29
SoftElectronSelectionAlg
(
const
std::string& name,
30
ISvcLocator* pSvcLocator);
31
32
virtual
StatusCode
initialize
()
override
;
33
virtual
StatusCode
execute
(
const
EventContext&)
const override
;
34
35
private
:
36
bool
passedCuts
(
const
xAOD::Jet
&
jet
,
37
const
xAOD::Electron
& el,
38
float
energyOverP,
39
float
et
,
40
float
isoOverPt,
41
float
dpop)
const
;
42
43
// Input
44
SG::ReadHandleKey<xAOD::JetContainer>
m_jetContainerKey
{
45
this
,
"jetContainer"
,
"AntiKt4EMPFlowJets"
,
46
"Key for the input jet collection"
};
47
48
SG::ReadHandleKey<xAOD::ElectronContainer>
m_electronContainerKey
{
49
this
,
"electronContainer"
,
"Electrons"
,
50
"Key for the input electron collection"
};
51
52
// Input decoration on jets: FTag ghost-associated electrons
53
// (written by the b-tagging chain, a downstream algorithm).
54
SG::ReadDecorHandleKey<xAOD::JetContainer>
m_ghostElectronsKey
{
55
this
,
"ghostElectronsKey"
,
m_jetContainerKey
,
"FTagElectrons"
,
56
"Input decoration: FTag ghost-associated electron links per jet"
};
57
58
// Output decoration on jets
59
SG::WriteDecorHandleKey<xAOD::JetContainer>
m_selectedElectronsKey
{
60
this
,
"selectedElectronsKey"
,
"AntiKt4EMPFlowJets.GhostFTagSelectedElectrons"
,
61
"Output decoration: selected electron links per jet"
};
62
63
// Read decorations on electrons (from SoftElectronDecoratorAlg)
64
SG::ReadDecorHandleKey<xAOD::ElectronContainer>
m_energyOverPKey
{
65
this
,
"energyOverPKey"
,
"Electrons.ftag_energyOverP"
,
66
"E/p decoration on electrons"
};
67
68
SG::ReadDecorHandleKey<xAOD::ElectronContainer>
m_etKey
{
69
this
,
"etKey"
,
"Electrons.ftag_et"
,
70
"ET decoration on electrons"
};
71
72
SG::ReadDecorHandleKey<xAOD::ElectronContainer>
m_isoOverPtKey
{
73
this
,
"isoOverPtKey"
,
"Electrons.ftag_ptVarCone30OverPt"
,
74
"Isolation/pT decoration on electrons"
};
75
76
SG::ReadDecorHandleKey<xAOD::ElectronContainer>
m_dpopKey
{
77
this
,
"dpopKey"
,
"Electrons.ftag_deltaPOverP"
,
78
"deltaPOverP decoration on electrons"
};
79
80
// Selection cut thresholds (defaults match GN3_lite.json)
81
Gaudi::Property<float>
m_ptMinimum
{
82
this
,
"ptMinimum"
, 1000.,
"Minimum electron pT [MeV]"
};
83
Gaudi::Property<float>
m_ptMaximum
{
84
this
,
"ptMaximum"
, 500000.,
"Maximum electron pT [MeV]"
};
85
Gaudi::Property<float>
m_absEtaMaximum
{
86
this
,
"absEtaMaximum"
, 2.5,
"Maximum |eta|"
};
87
Gaudi::Property<float>
m_d0Maximum
{
88
this
,
"d0Maximum"
, 1.,
"Maximum |d0| [mm]"
};
89
Gaudi::Property<float>
m_eopMaximum
{
90
this
,
"eopMaximum"
, 30.,
"Maximum |E/p|"
};
91
Gaudi::Property<float>
m_etMaximum
{
92
this
,
"etMaximum"
, 50000.,
"Maximum ET [MeV]"
};
93
Gaudi::Property<float>
m_isoptMaximum
{
94
this
,
"isoptMaximum"
, 40.,
"Maximum |ptVarCone30/pT|"
};
95
Gaudi::Property<float>
m_ptrelMaximum
{
96
this
,
"ptrelMaximum"
, 5000.,
"Maximum ptrel [MeV]"
};
97
Gaudi::Property<float>
m_rhad1Maximum
{
98
this
,
"rhad1Maximum"
, 4.,
"Maximum |Rhad1|"
};
99
Gaudi::Property<float>
m_wstotMaximum
{
100
this
,
"wstotMaximum"
, 20.,
"Maximum |wtots1|"
};
101
Gaudi::Property<float>
m_rphiMaximum
{
102
this
,
"rphiMaximum"
, 2.,
"Maximum |Rphi|"
};
103
Gaudi::Property<float>
m_retaMaximum
{
104
this
,
"retaMaximum"
, 2.,
"Maximum |Reta|"
};
105
Gaudi::Property<float>
m_deta1Maximum
{
106
this
,
"deta1Maximum"
, 10.,
"Maximum |deltaEta1|"
};
107
Gaudi::Property<float>
m_dpopMaximum
{
108
this
,
"dpopMaximum"
, 5.,
"Maximum |deltaPOverP|"
};
109
Gaudi::Property<float>
m_maxDeltaR
{
110
this
,
"maxDeltaR"
, -1.,
111
"Maximum DeltaR(jet, electron); <=0 disables the cut "
112
"(rely on ghost-association alone)"
};
113
};
114
115
}
// namespace FlavorTagJetDecorators
116
117
#endif
AthReentrantAlgorithm.h
ElectronContainer.h
JetContainer.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_rphiMaximum
Gaudi::Property< float > m_rphiMaximum
Definition
SoftElectronSelectionAlg.h:101
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_dpopKey
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_dpopKey
Definition
SoftElectronSelectionAlg.h:76
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_ghostElectronsKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_ghostElectronsKey
Definition
SoftElectronSelectionAlg.h:54
FlavorTagJetDecorators::SoftElectronSelectionAlg::initialize
virtual StatusCode initialize() override
Definition
SoftElectronSelectionAlg.cxx:23
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_wstotMaximum
Gaudi::Property< float > m_wstotMaximum
Definition
SoftElectronSelectionAlg.h:99
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_deta1Maximum
Gaudi::Property< float > m_deta1Maximum
Definition
SoftElectronSelectionAlg.h:105
FlavorTagJetDecorators::SoftElectronSelectionAlg::SoftElectronSelectionAlg
SoftElectronSelectionAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
SoftElectronSelectionAlg.cxx:19
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_etMaximum
Gaudi::Property< float > m_etMaximum
Definition
SoftElectronSelectionAlg.h:91
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_retaMaximum
Gaudi::Property< float > m_retaMaximum
Definition
SoftElectronSelectionAlg.h:103
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_ptMaximum
Gaudi::Property< float > m_ptMaximum
Definition
SoftElectronSelectionAlg.h:83
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_etKey
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_etKey
Definition
SoftElectronSelectionAlg.h:68
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_isoOverPtKey
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_isoOverPtKey
Definition
SoftElectronSelectionAlg.h:72
FlavorTagJetDecorators::SoftElectronSelectionAlg::execute
virtual StatusCode execute(const EventContext &) const override
Definition
SoftElectronSelectionAlg.cxx:35
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_isoptMaximum
Gaudi::Property< float > m_isoptMaximum
Definition
SoftElectronSelectionAlg.h:93
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_d0Maximum
Gaudi::Property< float > m_d0Maximum
Definition
SoftElectronSelectionAlg.h:87
FlavorTagJetDecorators::SoftElectronSelectionAlg::passedCuts
bool passedCuts(const xAOD::Jet &jet, const xAOD::Electron &el, float energyOverP, float et, float isoOverPt, float dpop) const
Definition
SoftElectronSelectionAlg.cxx:82
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_eopMaximum
Gaudi::Property< float > m_eopMaximum
Definition
SoftElectronSelectionAlg.h:89
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_rhad1Maximum
Gaudi::Property< float > m_rhad1Maximum
Definition
SoftElectronSelectionAlg.h:97
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_ptMinimum
Gaudi::Property< float > m_ptMinimum
Definition
SoftElectronSelectionAlg.h:81
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_electronContainerKey
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronContainerKey
Definition
SoftElectronSelectionAlg.h:48
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_selectedElectronsKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_selectedElectronsKey
Definition
SoftElectronSelectionAlg.h:59
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_dpopMaximum
Gaudi::Property< float > m_dpopMaximum
Definition
SoftElectronSelectionAlg.h:107
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_maxDeltaR
Gaudi::Property< float > m_maxDeltaR
Definition
SoftElectronSelectionAlg.h:109
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_ptrelMaximum
Gaudi::Property< float > m_ptrelMaximum
Definition
SoftElectronSelectionAlg.h:95
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_energyOverPKey
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_energyOverPKey
Definition
SoftElectronSelectionAlg.h:64
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_absEtaMaximum
Gaudi::Property< float > m_absEtaMaximum
Definition
SoftElectronSelectionAlg.h:85
FlavorTagJetDecorators::SoftElectronSelectionAlg::m_jetContainerKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetContainerKey
Definition
SoftElectronSelectionAlg.h:44
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
FlavorTagJetDecorators
Definition
JetOverlapLeptonDecoratorAlg.cxx:25
jet
Definition
JetCalibTools_PlotJESFactors.cxx:23
xAOD::Jet
Jet_v1 Jet
Definition of the current "jet version".
Definition
Event/xAOD/xAODJet/xAODJet/Jet.h:17
xAOD::Electron
Electron_v1 Electron
Definition of the current "egamma version".
Definition
Event/xAOD/xAODEgamma/xAODEgamma/Electron.h:17
et
Extra patterns decribing particle interation process.
IParticleContainer.h
Generated on
for ATLAS Offline Software by
1.17.0