ATLAS Offline Software
Loading...
Searching...
No Matches
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
18public:
19
21 ParticleJetGhostLabelTool(const std::string& name);
22
23 StatusCode initialize() override;
24 StatusCode decorate(const xAOD::JetContainer& jets) const override;
25
26protected:
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
45};
46
47
48#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Interface for adding a decoration to a jet container.
ParticleJetTools::LabelNames m_labelnames
Name of jet label attributes.
double m_partptmin
Minimum pT for particle selection (in MeV)
StatusCode initialize() override
Dummy implementation of the initialisation function.
SG::ReadHandleKey< xAOD::TruthEventContainer > m_truthEventsKey
ParticleJetGhostLabelTool(const std::string &name)
Constructor.
StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
std::vector< const xAOD::TruthParticle * > match(const xAOD::Jet &, const std::string &ghostname) const
Property holding a SG store/key/clid from which a ReadHandle is made.
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".