ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
AnalysisCommon
ParticleJetTools
ParticleJetTools
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
8
#include "
AsgDataHandles/ReadHandleKey.h
"
9
#include "
AsgTools/AsgTool.h
"
10
#include "
JetInterface/IJetDecorator.h
"
11
#include "
xAODTruth/TruthParticle.h
"
12
#include "
xAODTruth/TruthParticleContainer.h
"
13
#include "
xAODTruth/TruthEventContainer.h
"
14
15
#include "
ParticleJetTools/ParticleJetLabelCommon.h
"
16
17
class
ParticleJetDeltaRLabelTool
:
public
asg::AsgTool
,
public
IJetDecorator
{
18
ASG_TOOL_CLASS
(
ParticleJetDeltaRLabelTool
,
IJetDecorator
)
19
public
:
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
(
29
const
xAOD::TruthParticleContainer
& parts,
30
const
xAOD::JetContainer
& jets)
const
;
31
32
33
protected
:
34
36
ParticleJetTools::LabelNames
m_labelnames
;
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"
};
46
SG::ReadHandleKey<xAOD::TruthEventContainer>
m_truthEventsKey
{
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
57
double
m_partptmin
;
58
60
double
m_jetptmin
;
61
63
double
m_drmax
;
64
66
std::string
m_matchmode
;
67
};
68
69
70
#endif
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.
TruthParticleContainer.h
TruthParticle.h
IJetDecorator.h
ParticleJetLabelCommon.h
TruthEventContainer.h
IJetDecorator
Interface for adding a decoration to a jet container.
Definition
IJetDecorator.h:21
ParticleJetDeltaRLabelTool::match
std::vector< std::vector< const xAOD::TruthParticle * > > match(const xAOD::TruthParticleContainer &parts, const xAOD::JetContainer &jets) const
Definition
ParticleJetDeltaRLabelTool.cxx:131
ParticleJetDeltaRLabelTool::m_charmPartCollectionKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_charmPartCollectionKey
Definition
ParticleJetDeltaRLabelTool.h:45
ParticleJetDeltaRLabelTool::ParticleJetDeltaRLabelTool
ParticleJetDeltaRLabelTool(const std::string &name)
Constructor.
Definition
ParticleJetDeltaRLabelTool.cxx:15
ParticleJetDeltaRLabelTool::m_taulabelname
std::string m_taulabelname
Definition
ParticleJetDeltaRLabelTool.h:38
ParticleJetDeltaRLabelTool::m_blinker
std::unique_ptr< ParticleJetTools::IParticleLinker > m_blinker
Definition
ParticleJetDeltaRLabelTool.h:52
ParticleJetDeltaRLabelTool::m_truthEventsKey
SG::ReadHandleKey< xAOD::TruthEventContainer > m_truthEventsKey
Definition
ParticleJetDeltaRLabelTool.h:46
ParticleJetDeltaRLabelTool::m_labelnames
ParticleJetTools::LabelNames m_labelnames
Name of jet label attributes.
Definition
ParticleJetDeltaRLabelTool.h:36
ParticleJetDeltaRLabelTool::m_bottomPartCollectionKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_bottomPartCollectionKey
Definition
ParticleJetDeltaRLabelTool.h:44
ParticleJetDeltaRLabelTool::m_jetptmin
double m_jetptmin
Minimum pT for jet selection (in MeV).
Definition
ParticleJetDeltaRLabelTool.h:60
ParticleJetDeltaRLabelTool::m_charmlabelname
std::string m_charmlabelname
Definition
ParticleJetDeltaRLabelTool.h:40
ParticleJetDeltaRLabelTool::m_bottomlabelname
std::string m_bottomlabelname
Definition
ParticleJetDeltaRLabelTool.h:39
ParticleJetDeltaRLabelTool::decorate
StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Definition
ParticleJetDeltaRLabelTool.cxx:53
ParticleJetDeltaRLabelTool::m_drmax
double m_drmax
Maximum dR for matching criterion.
Definition
ParticleJetDeltaRLabelTool.h:63
ParticleJetDeltaRLabelTool::m_clinker
std::unique_ptr< ParticleJetTools::IParticleLinker > m_clinker
Definition
ParticleJetDeltaRLabelTool.h:53
ParticleJetDeltaRLabelTool::m_matchmode
std::string m_matchmode
Matching mode: can be MinDR or MaxPt.
Definition
ParticleJetDeltaRLabelTool.h:66
ParticleJetDeltaRLabelTool::m_labeldecs
std::unique_ptr< ParticleJetTools::LabelDecorators > m_labeldecs
Definition
ParticleJetDeltaRLabelTool.h:37
ParticleJetDeltaRLabelTool::m_partptmin
double m_partptmin
Minimum pT for particle selection (in MeV).
Definition
ParticleJetDeltaRLabelTool.h:57
ParticleJetDeltaRLabelTool::initialize
StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
ParticleJetDeltaRLabelTool.cxx:29
ParticleJetDeltaRLabelTool::m_tauPartCollectionKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_tauPartCollectionKey
Read handles particle collections for labeling.
Definition
ParticleJetDeltaRLabelTool.h:43
ParticleJetDeltaRLabelTool::m_taulinker
std::unique_ptr< ParticleJetTools::IParticleLinker > m_taulinker
Definition
ParticleJetDeltaRLabelTool.h:54
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
xAOD::JetContainer
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Definition
JetContainer.h:17
xAOD::TruthParticleContainer
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.
Definition
Event/xAOD/xAODTruth/xAODTruth/TruthParticleContainer.h:17
ParticleJetTools::LabelNames
Definition
ParticleJetLabelCommon.h:22
Generated on
for ATLAS Offline Software by
1.17.0