ATLAS Offline Software
Loading...
Searching...
No Matches
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
23#include "xAODMuon/Muon.h"
25#include "GaudiKernel/ToolHandle.h"
26
27
28namespace D3PD {
29
30
36 : public SingleAssociationTool<xAOD::Muon, xAOD::TruthParticle>
37{
38public:
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
70private:
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
Type-safe wrapper for single associator tools.
SingleAssociationTool< xAOD::Muon, xAOD::TruthParticle > Base
MuonGenParticleAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
std::string m_drvar
Property: If not empty, the variable name to use for DR.
StatusCode initialize()
Standard Gaudi initialize method.
ToolHandle< IMCTruthClassifier > m_classifier
Property: classifier tool.
virtual const xAOD::TruthParticle * get(const xAOD::Muon &p)
Return the target object.
float * m_dr
Variable: DR between reco and truth.
StatusCode book()
Create any needed tuple variables.
SingleAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Block filler tool for noisy FEB information.
TruthParticle_v1 TruthParticle
Typedef to implementation.
Muon_v1 Muon
Reference the current persistent version: