atdisable_6d removes the Energy field in all elements, including RF cavities. The Energy field is not used in cavity processing, however it is taken as the definition of the ring energy if there is no RingParam element. So this creates problems for rings without RinpParam element.
In this PR, the Energy field is kept only in RF cavities.
atdisable_6d
removes theEnergy
field in all elements, including RF cavities. TheEnergy
field is not used in cavity processing, however it is taken as the definition of the ring energy if there is noRingParam
element. So this creates problems for rings withoutRinpParam
element.In this PR, the
Energy
field is kept only in RF cavities.