28 (
const std::string&
type,
29 const std::string& name,
30 const IInterface* parent)
34 declareProperty (
"Type",
m_typeprop =
"Primary",
35 "Which TrackParticle to return. One of "
37 "InDet, InDetOrPrimary, MuonSpectrometer");
46 CHECK( Base::initialize() );
62 return StatusCode::FAILURE;
64 return StatusCode::SUCCESS;
79 return p.primaryTrackParticle();
81 return p.trackParticle (xAOD::Muon::CombinedTrackParticle);
83 return p.trackParticle (xAOD::Muon::InnerDetectorTrackParticle);
85 return p.trackParticle (xAOD::Muon::MuonSpectrometerTrackParticle);
90 t = p.primaryTrackParticle();
Helpers for checking error return status codes and reporting errors.
#define REPORT_MESSAGE(LVL)
Report a message.
#define CHECK(...)
Evaluate an expression and check for errors.
Associate from an egamma to its primary TrackParticle.
StatusCode initialize()
Standard Gaudi initialize method.
MuonTrackParticleAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
SingleAssociationTool< xAOD::Muon, xAOD::TrackParticle > Base
enum D3PD::MuonTrackParticleAssociationTool::@372270170125360343007163127121224053354206170074 m_type
virtual const xAOD::TrackParticle * get(const xAOD::Muon &p)
Return the target object.
std::string m_typeprop
Property: Which track particle should we return.
Block filler tool for noisy FEB information.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Muon_v1 Muon
Reference the current persistent version: