ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
FlavorTagJetDecorators
src
JetOverlapLeptonDecoratorAlg.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 FLAVORTAGJETDECORATORS_JETOVERLAPLEPTON_DECORATORALG_H
6
#define FLAVORTAGJETDECORATORS_JETOVERLAPLEPTON_DECORATORALG_H
7
8
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
9
#include "
StoreGate/ReadHandleKey.h
"
10
#include "
StoreGate/ReadDecorHandleKey.h
"
11
#include "
StoreGate/WriteDecorHandleKey.h
"
12
13
#include "
xAODJet/JetContainer.h
"
14
#include "
xAODTruth/TruthParticleContainer.h
"
15
16
#include "
TruthUtils/TruthClasses.h
"
17
18
19
namespace
FlavorTagJetDecorators
{
20
35
class
JetOverlapLeptonDecoratorAlg
:
public
AthReentrantAlgorithm
{
36
public
:
37
JetOverlapLeptonDecoratorAlg
(
const
std::string& name,
38
ISvcLocator* pSvcLocator);
39
40
virtual
StatusCode
initialize
()
override
;
41
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
42
43
private
:
44
// Input containers
45
SG::ReadHandleKey<xAOD::JetContainer>
m_jetKey
{
46
this
,
"JetContainer"
,
"AntiKt4EMPFlowJets"
,
"Jet container"
};
47
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_truthElectronKey
{
48
this
,
"TruthElectronContainer"
,
"TruthElectrons"
,
49
"Truth electron container"
};
50
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_truthMuonKey
{
51
this
,
"TruthMuonContainer"
,
"TruthMuons"
,
52
"Truth muon container"
};
53
54
// Input decorations: classifierParticleOrigin on the truth leptons
55
// (written by MCTruthClassifier, a downstream algorithm).
56
SG::ReadDecorHandleKey<xAOD::TruthParticleContainer>
m_truthElectronOriginKey
{
57
this
,
"TruthElectronOriginKey"
,
m_truthElectronKey
,
58
"classifierParticleOrigin"
,
59
"MCTruthClassifier origin on truth electrons"
};
60
SG::ReadDecorHandleKey<xAOD::TruthParticleContainer>
m_truthMuonOriginKey
{
61
this
,
"TruthMuonOriginKey"
,
m_truthMuonKey
,
62
"classifierParticleOrigin"
,
63
"MCTruthClassifier origin on truth muons"
};
64
65
// Selection properties
66
Gaudi::Property<float>
m_overlapDR
{
67
this
,
"OverlapDR"
, 0.4f,
68
"Maximum DeltaR(jet, lepton) for overlap"
};
69
Gaudi::Property<float>
m_ptMinimum
{
70
this
,
"PtMinimum"
, 2000.f,
71
"Minimum lepton pT [MeV]"
};
72
Gaudi::Property<float>
m_absEtaMaximum
{
73
this
,
"AbsEtaMaximum"
, 2.9f,
74
"Maximum |eta| for lepton selection"
};
75
76
// Output decoration
77
SG::WriteDecorHandleKey<xAOD::JetContainer>
m_dec_hasOverlapLepton
{
78
this
,
"hasOverlapLeptonKey"
,
m_jetKey
,
"ftag_hasOverlapLepton"
,
79
"Whether jet overlaps with a truth lepton from W/Z/top"
};
80
};
81
82
}
83
84
#endif
// FLAVORTAGJETDECORATORS_JETOVERLAPLEPTON_DECORATORALG_H
AthReentrantAlgorithm.h
TruthParticleContainer.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.
TruthClasses.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
FlavorTagJetDecorators::JetOverlapLeptonDecoratorAlg::m_jetKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetKey
Definition
JetOverlapLeptonDecoratorAlg.h:45
FlavorTagJetDecorators::JetOverlapLeptonDecoratorAlg::JetOverlapLeptonDecoratorAlg
JetOverlapLeptonDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
JetOverlapLeptonDecoratorAlg.cxx:27
FlavorTagJetDecorators::JetOverlapLeptonDecoratorAlg::m_truthElectronKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthElectronKey
Definition
JetOverlapLeptonDecoratorAlg.h:47
FlavorTagJetDecorators::JetOverlapLeptonDecoratorAlg::m_ptMinimum
Gaudi::Property< float > m_ptMinimum
Definition
JetOverlapLeptonDecoratorAlg.h:69
FlavorTagJetDecorators::JetOverlapLeptonDecoratorAlg::m_absEtaMaximum
Gaudi::Property< float > m_absEtaMaximum
Definition
JetOverlapLeptonDecoratorAlg.h:72
FlavorTagJetDecorators::JetOverlapLeptonDecoratorAlg::m_dec_hasOverlapLepton
SG::WriteDecorHandleKey< xAOD::JetContainer > m_dec_hasOverlapLepton
Definition
JetOverlapLeptonDecoratorAlg.h:77
FlavorTagJetDecorators::JetOverlapLeptonDecoratorAlg::m_truthMuonKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthMuonKey
Definition
JetOverlapLeptonDecoratorAlg.h:50
FlavorTagJetDecorators::JetOverlapLeptonDecoratorAlg::m_truthElectronOriginKey
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_truthElectronOriginKey
Definition
JetOverlapLeptonDecoratorAlg.h:56
FlavorTagJetDecorators::JetOverlapLeptonDecoratorAlg::m_overlapDR
Gaudi::Property< float > m_overlapDR
Definition
JetOverlapLeptonDecoratorAlg.h:66
FlavorTagJetDecorators::JetOverlapLeptonDecoratorAlg::m_truthMuonOriginKey
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_truthMuonOriginKey
Definition
JetOverlapLeptonDecoratorAlg.h:60
FlavorTagJetDecorators::JetOverlapLeptonDecoratorAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
JetOverlapLeptonDecoratorAlg.cxx:44
FlavorTagJetDecorators::JetOverlapLeptonDecoratorAlg::initialize
virtual StatusCode initialize() override
Definition
JetOverlapLeptonDecoratorAlg.cxx:33
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
Generated on
for ATLAS Offline Software by
1.17.0