ATLAS Offline Software
Loading...
Searching...
No Matches
JetDRTrackAssocTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5// JetDRTrackAssocTool.h
6
7#ifndef JETMOMENTTOOLS_JETDRTRACKASSOCTOOL_H
8#define JETMOMENTTOOLS_JETDRTRACKASSOCTOOL_H
9
16
17#include "AsgTools/ToolHandle.h"
18#include "AsgTools/AsgTool.h"
23
25
26#include <vector>
27#include <string>
28
29
31 virtual public IJetDecorator {
33
34public:
35
36 // Constructor from tool name
37 JetDRTrackAssocTool(const std::string& name);
38
39 // Initialization.
40 StatusCode initialize() override;
41
42 // Calls getTrackMoments and puts the results in the jet
43 virtual StatusCode decorate(const xAOD::JetContainer& jets) const override;
44
45private:
46
47 // Configurable parameters
48 Gaudi::Property<std::string> m_jetContainerName{this, "JetContainer", "", "SG key for input jet container"};
49 Gaudi::Property<float> m_dRcut{this, "DeltaRCut", 0.4, "DeltaR cut for jet-track association"};
50
51 SG::ReadHandleKey<xAOD::TrackParticleContainer> m_trackContainer_key{this, "TracksToMatch", "", "Name of track collection for matching"};
52 SG::WriteDecorHandleKey<xAOD::JetContainer> m_decorDRTracks{this, "DRTrack", "", "SG key for DRTracks decoration (not to be configured manually!)"};
53
54 //const std::vector<const xAOD::TrackParticle*> getMatchedTracks(const xAOD::Jet&, const xAOD::TrackParticleContainer&, float) const;
55 StatusCode fillTrackToJetMap(std::map<const xAOD::TrackParticle*, const xAOD::Jet*>&, const xAOD::TrackParticleContainer&, const xAOD::JetContainer&, float) const;
56
57};
58
59#endif
60
#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.
StatusCode initialize() override
Dummy implementation of the initialisation function.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackContainer_key
StatusCode fillTrackToJetMap(std::map< const xAOD::TrackParticle *, const xAOD::Jet * > &, const xAOD::TrackParticleContainer &, const xAOD::JetContainer &, float) const
JetDRTrackAssocTool(const std::string &name)
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decorDRTracks
Gaudi::Property< std::string > m_jetContainerName
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Gaudi::Property< float > m_dRcut
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".