ATLAS Offline Software
Loading...
Searching...
No Matches
egammaGenParticleAssociationTool.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 EGAMMAD3PDMAKER_EGAMMAGENPARTICLEASSOCIATIONTOOL_H
18#define EGAMMAD3PDMAKER_EGAMMAGENPARTICLEASSOCIATIONTOOL_H
19
20
23#include "xAODEgamma/Egamma.h"
24#include "xAODEgamma/Electron.h"
25#include "xAODEgamma/Photon.h"
26#include "GaudiKernel/ToolHandle.h"
27
28
29namespace D3PD {
30
31
37 : public SingleAssociationTool<xAOD::Egamma, xAOD::TruthParticle>
38{
39public:
41
42
49 egammaGenParticleAssociationTool (const std::string& type,
50 const std::string& name,
51 const IInterface* parent);
52
53
55 StatusCode initialize();
56
57
59 StatusCode book ();
60
61
68 virtual const xAOD::TruthParticle* get (const xAOD::Egamma& p);
69
70
71private:
73 ToolHandle<IMCTruthClassifier> m_classifier;
74
76 std::string m_drvar;
77
79 float* m_dr;
80};
81
82
83} // namespace D3PD
84
85
86
87#endif // not EGAMMAD3PDMAKER_EGAMMAGENPARTICLEASSOCIATIONTOOL_H
Type-safe wrapper for single associator tools.
SingleAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
StatusCode initialize()
Standard Gaudi initialize method.
std::string m_drvar
Property: If not empty, the variable name to use for DR.
ToolHandle< IMCTruthClassifier > m_classifier
Property: classifier tool.
SingleAssociationTool< xAOD::Egamma, xAOD::TruthParticle > Base
StatusCode book()
Create any needed tuple variables.
virtual const xAOD::TruthParticle * get(const xAOD::Egamma &p)
Return the target object.
float * m_dr
Variable: DR between reco and truth.
egammaGenParticleAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Block filler tool for noisy FEB information.
Egamma_v1 Egamma
Definition of the current "egamma version".
Definition Egamma.h:17
TruthParticle_v1 TruthParticle
Typedef to implementation.