In the current version, since the shift given by the position of the collimators is treated by modifying the position of the particles when arriving the collimator (track.py:~70), the position of the particles dumped in the touch file do not include this shift.
Possible solutions:
Do not apply this shift to the particles in track.py and set the collimators shift in flukabuilder.py, translated in the use of the INROT* (ROT_DEFI) cards to generate this shift, through the insertion.txt.
2 . Find a way, maybe avoiding the use of the insertion.txt and postprocess the position and angle of the dumped particles (?). I think it is much more complicated though.
In the current version, since the shift given by the position of the collimators is treated by modifying the position of the particles when arriving the collimator (track.py:~70), the position of the particles dumped in the touch file do not include this shift.
Possible solutions: