This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| brunel:resolveparticleid [2010/03/23 16:16] – created nchiap | brunel:resolveparticleid [2010/03/23 17:12] (current) – nchiap | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| 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 | 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 | ||
| - | ===== Header File (*.h) ===== | + | ===== Brunel ===== |
| + | |||
| + | ==== Header File (*.h) ==== | ||
| Include the following headers | Include the following headers | ||
| <code c++> | <code c++> | ||
| Line 15: | Line 17: | ||
| </ | </ | ||
| - | ===== Implementation File (*.cpp) | + | ==== Implementation File (*.cpp) ==== |
| initialize the data member in the constructor or the initialize() function | initialize the data member in the constructor or the initialize() function | ||
| Line 27: | Line 29: | ||
| </ | </ | ||
| + | |||
| + | ===== DaVinci ===== | ||
| + | The ParticlePropertySvc is available in DaVinci as well. The DVAlgrithm comes with an accessor function ppSvc() so the service can be used directly | ||
| + | <code c++> | ||
| + | ppSvc()-> | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== More Details ===== | ||
| + | * [[davinci:: | ||