Hi @simonspa ,
Thank you for the tip. I tried to implement this:
A. In MCParticle class:
- I have added the
track_id_variable to theMCParticleclass. - The constructor of
MCParticleclass now containstrack_id. This is in the header file and this is in the cpp file. - Added a getter for
track_idin the MCParticle class.
B. In DepositionReader module:
The setup is compiling and running fine. But when I get the track id from MCParticle::getParticleTrackID, I see garbage values. For example, this is the input track ids:

and this is what I get from the processed output (x-axis is multiplied by 1e6):
I am not sure why this is happening. Is there any other place where I am supposed to add track_id? I did not change anything in DatabaseWriter module, but my understanding is that this is not needed because I am not writing to SQL database. Any heads up will be greatly appreciated.
Thanks once again!
Arka
