Open lehnertu opened 3 years ago
This subdivided step should still be stored as a single step in the trajectory. Otherwise it would break some of the observer code.
The SDDS beam example (chicane bunch compressor) can serve as a test - the horizontal emittance should be preserved.
Have defined a soft-edge dipole to make this issue less important
When a particle enters or leaves a hard-edge dipole, the amount of bending in that step depends on the exact position of the beginning and end of that step. This can be different for different particles and introduce an artificial angular spread. A refinement (subdivision) of those steps is desirable. This could be accomplished by querying the lattice elements if a step would cross an edge and deliver a crossing position for a step subdivision.