ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetMomentTools
JetMomentTools
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
"
19
#include "
AsgTools/PropertyWrapper.h
"
20
#include "
JetInterface/IJetDecorator.h
"
21
#include "
AsgDataHandles/ReadHandleKey.h
"
22
#include "
AsgDataHandles/WriteDecorHandleKeyArray.h
"
23
24
#include "
xAODTracking/TrackParticleContainer.h
"
25
26
#include <vector>
27
#include <string>
28
29
30
class
JetDRTrackAssocTool
:
public
asg::AsgTool
,
31
virtual
public
IJetDecorator
{
32
ASG_TOOL_CLASS
(
JetDRTrackAssocTool
,
IJetDecorator
)
33
34
public
:
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
45
private
:
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
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKeyArray.h
TrackParticleContainer.h
IJetDecorator.h
PropertyWrapper.h
ToolHandle.h
IJetDecorator
Interface for adding a decoration to a jet container.
Definition
IJetDecorator.h:21
JetDRTrackAssocTool::initialize
StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
JetDRTrackAssocTool.cxx:19
JetDRTrackAssocTool::m_trackContainer_key
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackContainer_key
Definition
JetDRTrackAssocTool.h:51
JetDRTrackAssocTool::fillTrackToJetMap
StatusCode fillTrackToJetMap(std::map< const xAOD::TrackParticle *, const xAOD::Jet * > &, const xAOD::TrackParticleContainer &, const xAOD::JetContainer &, float) const
Definition
JetDRTrackAssocTool.cxx:86
JetDRTrackAssocTool::JetDRTrackAssocTool
JetDRTrackAssocTool(const std::string &name)
Definition
JetDRTrackAssocTool.cxx:11
JetDRTrackAssocTool::m_decorDRTracks
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decorDRTracks
Definition
JetDRTrackAssocTool.h:52
JetDRTrackAssocTool::m_jetContainerName
Gaudi::Property< std::string > m_jetContainerName
Definition
JetDRTrackAssocTool.h:48
JetDRTrackAssocTool::decorate
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Definition
JetDRTrackAssocTool.cxx:39
JetDRTrackAssocTool::m_dRcut
Gaudi::Property< float > m_dRcut
Definition
JetDRTrackAssocTool.h:49
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
xAOD::TrackParticleContainer
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".
Definition
Event/xAOD/xAODTracking/xAODTracking/TrackParticleContainer.h:14
xAOD::JetContainer
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Definition
JetContainer.h:17
Generated on
for ATLAS Offline Software by
1.17.0