xsuite / xcoll

Xsuite collimation package
Apache License 2.0
3 stars 15 forks source link

Shift not included in touch files #92

Open andredonadon opened 3 months ago

andredonadon commented 3 months ago

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:

  1. 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.