<div dir="ltr">Teagan,<div><br></div><div>If you look at the HDGeant4 github repo, you will see that there is a new branch,</div><div><ul><li>store_trajectory_ancestry</li></ul><div>that you can build and run. When you turn on the TRAJECTORIES card, and look in the output hddm file, you will see that the mcTrajectoryPoint has changed.</div><div><br></div><div>In the standard build of hdgeant4, every other mcTrajectoryPoint represented the particle simply crossing a geometry boundary, so the physics mechanism was mech="0". That gave me a free slot to introduce the ancestry information. Every time the standard code would write mech="0" I now write mech="-N" where -N is the negative of the trackID of the parent particle. That is, N is the value of the mcTrajectoryPoint that is shown for the parent particle in its "track" attribute. This injection of ancestry information is uniquely separated from the standard mech="SSSS" information because SSSS is guaranteed to be a positive integer.</div></div><div><br></div><div>This is ready to go on <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_JeffersonLab_HDGeant4&d=DwMFaQ&c=CJqEzB1piLOyyvZjb8YUQw&r=Te_hCR4EUlJ6iCDYLJ8Viv2aDOR7D9ZZMoBAvf2H0M4&m=QzekzYWE3EHJAmXffnZvQcTitwJdeVNzOlqfKfCupVU&s=yKhaH-LBLBAVPfwCUnKwN4ZWyA-TWKCuLKMViwoyGHw&e=">https://github.com/JeffersonLab/HDGeant4</a>. In a few minutes you will also see a similar feature appearing on a branch with the same name in <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_JeffersonLab_halld-5Fsim&d=DwMFaQ&c=CJqEzB1piLOyyvZjb8YUQw&r=Te_hCR4EUlJ6iCDYLJ8Viv2aDOR7D9ZZMoBAvf2H0M4&m=QzekzYWE3EHJAmXffnZvQcTitwJdeVNzOlqfKfCupVU&s=pYZ28gFL0M-jxTqS9_zQgD66YgZY5cEj4tO7k0-a6QY&e=">https://github.com/JeffersonLab/halld_sim</a> for hdgeant.</div><div><br></div><div>-Richard Jones</div></div>