Manually reset part_abs_pos, part_hit_pos, part_turn_pos and part_turn_abs after each tracking. Added c_enom to pyk2 to avoid nan values in sixtrack. Added abs() to the calculation of offset to avoid offset always being 0. Removed elements/names of collimators that have no gap in order to match with .dat file.
Only change in FORTRAN is making part_hit_turn from collimation.f90 public, so that it is possible to reset its elements in pyk2.
NOTE: only (visible) difference between Xsuite and SixTrack now is the case where the pencil is generated "within" the collimator. For Xsuite all particles die. For SixTrack only the absorbed ones "die". Plots are equal if Xsuite includes all "dead" particles as well for this case.
Closes # .
Checklist
Mandatory:
[ ] I have added tests to cover my changes
[ ] All the tests are passing, including my new ones
[ ] I described my changes in this PR description
Optional:
[ ] The code I wrote follows good style practices (see PEP 8 and PEP 20).
[ ] I have updated the docs in relation to my changes, if applicable
Description
Manually reset part_abs_pos, part_hit_pos, part_turn_pos and part_turn_abs after each tracking. Added c_enom to pyk2 to avoid nan values in sixtrack. Added abs() to the calculation of offset to avoid offset always being 0. Removed elements/names of collimators that have no gap in order to match with .dat file.
Only change in FORTRAN is making part_hit_turn from collimation.f90 public, so that it is possible to reset its elements in pyk2.
NOTE: only (visible) difference between Xsuite and SixTrack now is the case where the pencil is generated "within" the collimator. For Xsuite all particles die. For SixTrack only the absorbed ones "die". Plots are equal if Xsuite includes all "dead" particles as well for this case. Closes # .
Checklist
Mandatory:
Optional: