ATLAS Offline Software
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"
13 
15 
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 
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 
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::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
ParticleJetGhostLabelTool::decorate
StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Definition: ParticleJetGhostLabelTool.cxx:30
TruthParticleContainer.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
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
IJetDecorator.h
ParticleJetLabelCommon.h
ParticleJetGhostLabelTool::m_labelnames
ParticleJetTools::LabelNames m_labelnames
Name of jet label attributes.
Definition: ParticleJetGhostLabelTool.h:38
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
ParticleJetGhostLabelTool::m_truthEventsKey
SG::ReadHandleKey< xAOD::TruthEventContainer > m_truthEventsKey
Definition: ParticleJetGhostLabelTool.h:28
ParticleJetGhostLabelTool::initialize
StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: ParticleJetGhostLabelTool.cxx:23
ParticleJetGhostLabelTool::m_ghosttauname
std::string m_ghosttauname
Definition: ParticleJetGhostLabelTool.h:39
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
ParticleJetGhostLabelTool::match
std::vector< const xAOD::TruthParticle * > match(const xAOD::Jet &, const std::string &ghostname) const
Definition: ParticleJetGhostLabelTool.cxx:80
ParticleJetGhostLabelTool
Definition: ParticleJetGhostLabelTool.h:16
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24
AsgTool.h
TruthParticle.h
TruthEventContainer.h
ParticleJetGhostLabelTool::m_ghostbname
std::string m_ghostbname
Definition: ParticleJetGhostLabelTool.h:41
ParticleJetGhostLabelTool::ParticleJetGhostLabelTool
ParticleJetGhostLabelTool(const std::string &name)
Constructor.
Definition: ParticleJetGhostLabelTool.cxx:14
ParticleJetGhostLabelTool::m_partptmin
double m_partptmin
Minimum pT for particle selection (in MeV)
Definition: ParticleJetGhostLabelTool.h:44
ParticleJetTools::LabelNames
Definition: ParticleJetLabelCommon.h:22