Function OrbitUtils::apply_twiss_weights_for_init_coords#

Function Documentation#

void OrbitUtils::apply_twiss_weights_for_init_coords(Bunch *bunch, int appl_x, int appl_y, int appl_z)#

A function analyzes 6D coordinates and initial coords. Macrosize of macro-particles in the bunch will be multiplied by wx*wy*wz where wx = exp(-(x^2+(alphax*x+betax*x’)^2)/(2*(betax*emittancex)) etc. Alpha, beta, emittance are the Twiss parameters for the corresponding plane.

A function analyzes bunch with (ParticleInitialCoordinates) attributes Macrosizes of macro-particles in the bunch will be multiplied by the numbers wx0*wy0*wz0*wx1*wy1*wz1 where wx(In or Out) = exp(-(x^2+(alphax*x+betax*x’)^2)/(2*(betax*emittancex)) etc. Alpha, beta, emittance are the Twiss parameters for the corresponding plane.