To turn the PartilceID back into a human readable string you can use the ParticleProperty Service. To do this you need to add the following lines to your code
Include the following headers
#include "Kernel/IParticlePropertySvc.h" #include "Kernel/ParticleProperty.h"
create a private data member
LHCb::IParticlePropertySvc* m_ppSvc;
initialize the data member in the constructor or the initialize() function
m_ppSvc = svc<LHCb::IParticlePropertySvc>("LHCb::ParticlePropertySvc", true);
afterwards you can use the service to get the ParticleProperties
m_ppSvc->find(particleID)->name();
The ParticlePropertySvc is available in DaVinci as well. The DVAlgrithm comes with an accessor function ppSvc() so the service can be used directly
ppSvc()->find(particleID)->name();