ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
MuonD3PDMaker
src
MuonGenParticleAssociationTool.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3
/*
4
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// $Id$
15
16
17
#ifndef MUOND3PDMAKER_MUONGENPARTICLEASSOCIATIONTOOL_H
18
#define MUOND3PDMAKER_MUONGENPARTICLEASSOCIATIONTOOL_H
19
20
21
#include "
D3PDMakerUtils/SingleAssociationTool.h
"
22
#include "
MCTruthClassifier/IMCTruthClassifier.h
"
23
#include "
xAODMuon/Muon.h
"
24
#include "
xAODTruth/TruthParticle.h
"
25
#include "GaudiKernel/ToolHandle.h"
26
27
28
namespace
D3PD
{
29
30
35
class
MuonGenParticleAssociationTool
36
:
public
SingleAssociationTool
<xAOD::Muon, xAOD::TruthParticle>
37
{
38
public
:
39
typedef
SingleAssociationTool<xAOD::Muon, xAOD::TruthParticle>
Base
;
40
41
48
MuonGenParticleAssociationTool
(
const
std::string&
type
,
49
const
std::string& name,
50
const
IInterface* parent);
51
52
54
StatusCode
initialize
();
55
56
58
StatusCode
book
();
59
60
67
virtual
const
xAOD::TruthParticle
*
get
(
const
xAOD::Muon
& p);
68
69
70
private
:
72
ToolHandle<IMCTruthClassifier>
m_classifier
;
73
75
std::string
m_drvar
;
76
78
float
*
m_dr
;
79
};
80
81
82
}
// namespace D3PD
83
84
85
86
#endif
// not MUOND3PDMAKER_MUONGENPARTICLEASSOCIATIONTOOL_H
Muon.h
TruthParticle.h
IMCTruthClassifier.h
SingleAssociationTool.h
Type-safe wrapper for single associator tools.
D3PD::MuonGenParticleAssociationTool::Base
SingleAssociationTool< xAOD::Muon, xAOD::TruthParticle > Base
Definition
MuonGenParticleAssociationTool.h:39
D3PD::MuonGenParticleAssociationTool::MuonGenParticleAssociationTool
MuonGenParticleAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition
MuonGenParticleAssociationTool.cxx:33
D3PD::MuonGenParticleAssociationTool::m_drvar
std::string m_drvar
Property: If not empty, the variable name to use for DR.
Definition
MuonGenParticleAssociationTool.h:75
D3PD::MuonGenParticleAssociationTool::initialize
StatusCode initialize()
Standard Gaudi initialize method.
Definition
MuonGenParticleAssociationTool.cxx:50
D3PD::MuonGenParticleAssociationTool::m_classifier
ToolHandle< IMCTruthClassifier > m_classifier
Property: classifier tool.
Definition
MuonGenParticleAssociationTool.h:72
D3PD::MuonGenParticleAssociationTool::get
virtual const xAOD::TruthParticle * get(const xAOD::Muon &p)
Return the target object.
Definition
MuonGenParticleAssociationTool.cxx:76
D3PD::MuonGenParticleAssociationTool::m_dr
float * m_dr
Variable: DR between reco and truth.
Definition
MuonGenParticleAssociationTool.h:78
D3PD::MuonGenParticleAssociationTool::book
StatusCode book()
Create any needed tuple variables.
Definition
MuonGenParticleAssociationTool.cxx:61
D3PD::SingleAssociationTool< xAOD::Muon, xAOD::TruthParticle >::SingleAssociationTool
SingleAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
D3PD
Block filler tool for noisy FEB information.
Definition
CaloCellDetailsFillerTool.cxx:29
xAOD::TruthParticle
TruthParticle_v1 TruthParticle
Typedef to implementation.
Definition
Event/xAOD/xAODTruth/xAODTruth/TruthParticle.h:15
xAOD::Muon
Muon_v1 Muon
Reference the current persistent version:
Definition
Event/xAOD/xAODMuon/xAODMuon/Muon.h:13
type
Generated on
for ATLAS Offline Software by
1.17.0