ATLAS Offline Software
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$
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
D3PD::MuonGenParticleAssociationTool::m_dr
float * m_dr
Variable: DR between reco and truth.
Definition:
MuonGenParticleAssociationTool.h:78
D3PD::SingleAssociationTool
Type-safe wrapper for single associator tools.
Definition:
SingleAssociationTool.h:133
D3PD::MuonGenParticleAssociationTool::get
virtual const xAOD::TruthParticle * get(const xAOD::Muon &p)
Return the target object.
Definition:
MuonGenParticleAssociationTool.cxx:76
D3PD::MuonGenParticleAssociationTool::initialize
StatusCode initialize()
Standard Gaudi initialize method.
Definition:
MuonGenParticleAssociationTool.cxx:50
xAOD::Muon_v1
Class describing a Muon.
Definition:
Muon_v1.h:38
D3PD::MuonGenParticleAssociationTool::book
StatusCode book()
Create any needed tuple variables.
Definition:
MuonGenParticleAssociationTool.cxx:61
SingleAssociationTool.h
Type-safe wrapper for single associator tools.
D3PD
Block filler tool for noisy FEB information.
Definition:
CaloCellDetailsFillerTool.cxx:29
python.utils.AtlRunQueryDQUtils.p
p
Definition:
AtlRunQueryDQUtils.py:210
IMCTruthClassifier.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition:
TruthParticle_v1.h:37
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
D3PD::MuonGenParticleAssociationTool
Associate from an electron/photon to a matched GenParticle via classification tool.
Definition:
MuonGenParticleAssociationTool.h:37
D3PD::MuonGenParticleAssociationTool::MuonGenParticleAssociationTool
MuonGenParticleAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition:
MuonGenParticleAssociationTool.cxx:33
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
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::Base
SingleAssociationTool< xAOD::Muon, xAOD::TruthParticle > Base
Definition:
MuonGenParticleAssociationTool.h:39
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
TruthParticle.h
D3PD::MuonGenParticleAssociationTool::m_classifier
ToolHandle< IMCTruthClassifier > m_classifier
Property: classifier tool.
Definition:
MuonGenParticleAssociationTool.h:72
Generated on Sun Dec 22 2024 21:15:06 for ATLAS Offline Software by
1.8.18