36 (
const std::string&
type,
37 const std::string& name,
38 const IInterface* parent)
42 declareProperty (
"Classifier",
m_classifier,
"Classifier tool instance.");
43 declareProperty (
"DRVar",
m_drvar,
44 "If not empty, the variable name to use for DR.");
55 CHECK( Base::initialize() );
57 return StatusCode::SUCCESS;
68 return StatusCode::SUCCESS;
99 *
m_dr = p.p4().DeltaR (out->p4());
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
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.
Associate from an electron to a matched GenParticle via classification tool.
Block filler tool for noisy FEB information.
Egamma_v1 Egamma
Definition of the current "egamma version".
TruthParticle_v1 TruthParticle
Typedef to implementation.
Photon_v1 Photon
Definition of the current "egamma version".
Electron_v1 Electron
Definition of the current "egamma version".