Function OrbitUtils::swapInitCoordsAttrAndCoords#

Function Documentation#

void OrbitUtils::swapInitCoordsAttrAndCoords(Bunch *bunch)#

A function that will swap the initial coordinates Attribute (ParticleInitialCoordinates) and the 6D coordinates of the particles.

A function that will swap the initial coordinates Attribute (ParticleInitialCoordinates) and the 6D coordinates of the particles. If the bunch does not have the ParticleInitialCoordinates particles attributes they will be created and full out with 0s, and then they will be swept.