====== Resolve PartilceID ====== 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 ===== Brunel ===== ==== Header File (*.h) ==== Include the following headers #include "Kernel/IParticlePropertySvc.h" #include "Kernel/ParticleProperty.h" create a private data member LHCb::IParticlePropertySvc* m_ppSvc; ==== Implementation File (*.cpp) ==== initialize the data member in the constructor or the initialize() function m_ppSvc = svc("LHCb::ParticlePropertySvc", true); afterwards you can use the service to get the ParticleProperties m_ppSvc->find(particleID)->name(); ===== DaVinci ===== 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(); ===== More Details ===== * [[davinci::particletable | ParticleTable]] Create a File with the Information used in the ParticlePropertySvc