ATLAS Offline Software
Loading...
Searching...
No Matches
ParticleJetDeltaRLabelTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef PARTICLEJETDELTARLABELTOOL_H
6#define PARTICLEJETDELTARLABELTOOL_H
7
9#include "AsgTools/AsgTool.h"
14
16
19public:
20
22 ParticleJetDeltaRLabelTool(const std::string& name);
23
24 StatusCode initialize() override;
25
26 StatusCode decorate(const xAOD::JetContainer& jets) const override;
27
28 std::vector<std::vector<const xAOD::TruthParticle*> > match(
30 const xAOD::JetContainer& jets) const;
31
32
33protected:
34
37 std::unique_ptr<ParticleJetTools::LabelDecorators> m_labeldecs;
38 std::string m_taulabelname;
39 std::string m_bottomlabelname;
40 std::string m_charmlabelname;
41
43 SG::ReadHandleKey<xAOD::TruthParticleContainer> m_tauPartCollectionKey{this,"TauParticleCollection","","ReadHandleKey for tauPartCollection"};
44 SG::ReadHandleKey<xAOD::TruthParticleContainer> m_bottomPartCollectionKey{this,"BParticleCollection","","ReadHandleKey for bottomPartCollection"};
45 SG::ReadHandleKey<xAOD::TruthParticleContainer> m_charmPartCollectionKey{this,"CParticleCollection","","ReadHandleKey for charmPartCollection"};
47 this, "TruthEventCollection", "TruthEvents",
48 "Truth event collection"
49 };
50
51 // linkers to the truth particles
52 std::unique_ptr<ParticleJetTools::IParticleLinker> m_blinker;
53 std::unique_ptr<ParticleJetTools::IParticleLinker> m_clinker;
54 std::unique_ptr<ParticleJetTools::IParticleLinker> m_taulinker;
55
58
60 double m_jetptmin;
61
63 double m_drmax;
64
66 std::string m_matchmode;
67};
68
69
70#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Property holding a SG store/key/clid from which a ReadHandle is made.
Interface for adding a decoration to a jet container.
std::vector< std::vector< const xAOD::TruthParticle * > > match(const xAOD::TruthParticleContainer &parts, const xAOD::JetContainer &jets) const
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_charmPartCollectionKey
ParticleJetDeltaRLabelTool(const std::string &name)
Constructor.
std::unique_ptr< ParticleJetTools::IParticleLinker > m_blinker
SG::ReadHandleKey< xAOD::TruthEventContainer > m_truthEventsKey
ParticleJetTools::LabelNames m_labelnames
Name of jet label attributes.
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_bottomPartCollectionKey
double m_jetptmin
Minimum pT for jet selection (in MeV)
StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
double m_drmax
Maximum dR for matching criterion.
std::unique_ptr< ParticleJetTools::IParticleLinker > m_clinker
std::string m_matchmode
Matching mode: can be MinDR or MaxPt.
std::unique_ptr< ParticleJetTools::LabelDecorators > m_labeldecs
double m_partptmin
Minimum pT for particle selection (in MeV)
StatusCode initialize() override
Dummy implementation of the initialisation function.
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_tauPartCollectionKey
Read handles particle collections for labeling.
std::unique_ptr< ParticleJetTools::IParticleLinker > m_taulinker
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
JetContainer_v1 JetContainer
Definition of the current "jet container version".
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.