User Tools

Site Tools


brunel:resolveparticleid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
brunel:resolveparticleid [2010/03/23 16:16] – created nchiapbrunel: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:
 </code> </code>
  
-===== 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:
 </code> </code>
  
 +
 +===== 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()->find(particleID)->name();
 +</code>
 +
 +
 +===== More Details =====
 +  * [[davinci::particletable | ParticleTable]] Create a File with the Information used in the ParticlePropertySvc
brunel/resolveparticleid.1269357379.txt.gz · Last modified: by nchiap