Dear @adonadon
As you suggested, I’ve implemented in USRDRAW the XYZ(Track) but without very much success. From these variables, I’ve obtained very large arrays basically filled with 0.0 and the output becomes too large.
On the other hand, following some of your suggestions I’ve improved the results. Nonetheless, there are some outputs that I don’t know how to interpret. I’m exposing an example below. Please, if you think this information needs to be on a new topic, please let me know to open it.
The table columns are icode, kinetic energy (ekin), the id of the particle (id), ltrack, the parent id (id_anc), and the unique_id generated from post-processing.
The first two rows are the track tail of a muon+. The id and id_anc are the same because the muon is transported. Another muon+ is created at index 2297 by decay (icode 102) from a pi- (id_anc 13) and the next rows show its transport.
What I don’t know how to interpret is the creation of that pi- (index 2291) which shows a pi+ as parent id (id_anc 14). This combination of 13 as id and 14 as id_anc and vice versa happens several times.
It also appears a few times Kaon- creating a pion+ and vice-versa.
Many thanks,
Jordi