Dumping phase space in global frame (Cyclotron-Tracker)
When dumping the phase space in global frame one obtains bad results if a core does not have particles, e.g.
OPAL{0}> * Integration step 0 (no phase space dump for <= 2 particles)
OPAL{0}> * T = 0 ns, Live Particles: 80640000
OPAL{0}> * E = 71.6 MeV, beta * gamma = 0
OPAL{0}> * Bunch position: R = 0 mm, Theta = 0 Deg, Z = 0 mm
OPAL{0}> * Local Azimuth = -90 Deg, Local Elevation = -nan Deg
The reason is the usage of
meanR = itsBunch_m->R[0];
meanP = itsBunch_m->P[0];
in bunchDumpPhaseSpaceData()
and bunchDumpStatData()
.