ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
AnalysisCommon
ParticleJetTools
ParticleJetTools
ParticleJetGhostLabelTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef PARTICLEJETGHOSTLABELTOOL_H
6
#define PARTICLEJETGHOSTLABELTOOL_H
7
8
#include "
AsgTools/AsgTool.h
"
9
#include "
JetInterface/IJetDecorator.h
"
10
#include "
xAODTruth/TruthParticle.h
"
11
#include "
xAODTruth/TruthParticleContainer.h
"
12
#include "
xAODTruth/TruthEventContainer.h
"
13
14
#include "
ParticleJetTools/ParticleJetLabelCommon.h
"
15
16
class
ParticleJetGhostLabelTool
:
public
asg::AsgTool
,
public
IJetDecorator
{
17
ASG_TOOL_CLASS
(
ParticleJetGhostLabelTool
,
IJetDecorator
)
18
public
:
19
21
ParticleJetGhostLabelTool
(
const
std::string& name);
22
23
StatusCode
initialize
()
override
;
24
StatusCode
decorate
(
const
xAOD::JetContainer
& jets)
const override
;
25
26
protected
:
27
28
SG::ReadHandleKey<xAOD::TruthEventContainer>
m_truthEventsKey
{
29
this
,
"TruthEventCollection"
,
"TruthEvents"
,
30
"Truth event collection"
31
};
32
33
std::vector<const xAOD::TruthParticle*>
match
(
34
const
xAOD::Jet
&,
const
std::string& ghostname
35
)
const
;
36
38
ParticleJetTools::LabelNames
m_labelnames
;
39
std::string
m_ghosttauname
;
40
std::string
m_ghostcname
;
41
std::string
m_ghostbname
;
42
44
double
m_partptmin
;
45
};
46
47
48
#endif
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.h
TruthParticleContainer.h
TruthParticle.h
IJetDecorator.h
ParticleJetLabelCommon.h
TruthEventContainer.h
IJetDecorator
Interface for adding a decoration to a jet container.
Definition
IJetDecorator.h:21
ParticleJetGhostLabelTool::m_ghostcname
std::string m_ghostcname
Definition
ParticleJetGhostLabelTool.h:40
ParticleJetGhostLabelTool::m_labelnames
ParticleJetTools::LabelNames m_labelnames
Name of jet label attributes.
Definition
ParticleJetGhostLabelTool.h:38
ParticleJetGhostLabelTool::m_ghostbname
std::string m_ghostbname
Definition
ParticleJetGhostLabelTool.h:41
ParticleJetGhostLabelTool::m_partptmin
double m_partptmin
Minimum pT for particle selection (in MeV).
Definition
ParticleJetGhostLabelTool.h:44
ParticleJetGhostLabelTool::initialize
StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
ParticleJetGhostLabelTool.cxx:23
ParticleJetGhostLabelTool::m_truthEventsKey
SG::ReadHandleKey< xAOD::TruthEventContainer > m_truthEventsKey
Definition
ParticleJetGhostLabelTool.h:28
ParticleJetGhostLabelTool::ParticleJetGhostLabelTool
ParticleJetGhostLabelTool(const std::string &name)
Constructor.
Definition
ParticleJetGhostLabelTool.cxx:14
ParticleJetGhostLabelTool::m_ghosttauname
std::string m_ghosttauname
Definition
ParticleJetGhostLabelTool.h:39
ParticleJetGhostLabelTool::decorate
StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Definition
ParticleJetGhostLabelTool.cxx:30
ParticleJetGhostLabelTool::match
std::vector< const xAOD::TruthParticle * > match(const xAOD::Jet &, const std::string &ghostname) const
Definition
ParticleJetGhostLabelTool.cxx:80
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
xAOD::Jet
Jet_v1 Jet
Definition of the current "jet version".
Definition
Event/xAOD/xAODJet/xAODJet/Jet.h:17
xAOD::JetContainer
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Definition
JetContainer.h:17
ParticleJetTools::LabelNames
Definition
ParticleJetLabelCommon.h:22
Generated on
for ATLAS Offline Software by
1.17.0