23.05.2014 Views

Athena Developer Guide

Athena Developer Guide

Athena Developer Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Athena</strong><br />

Chapter 13 Framework services Version/Issue: 2.0.0<br />

The IParticlePropertySvc interface also provides some typedefs for easier coding:<br />

typedef ParticleProperty* mapped_type;<br />

typedef std::map< int, mapped_type, std::less > MapID;<br />

typedef std::map< std::string, mapped_type, std::less > MapName;<br />

typedef std::map< int, mapped_type, std::less > MapStdHepID;<br />

typedef IParticlePropertySvc::VectPP VectPP;<br />

typedef IParticlePropertySvc::const_iterator const_iterator;<br />

typedef IParticlePropertySvc::iterator iterator;<br />

13.5.4 Examples<br />

Below are some extracts of code from the LHCb ParticleProperties example to show how one<br />

might use the service:<br />

Listing 13.3 Code fragment to find particle properties by particle name.<br />

// Try finding particles by the different methods<br />

log

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!