Function OrbitUtils::transport_mtrx_from_init_coords(Bunch *, Matrix *, int, int, int)#

Function Documentation#

int OrbitUtils::transport_mtrx_from_init_coords(Bunch *bunch, Matrix *A_mtr, int appl_twiss_x, int appl_twiss_y, int appl_twiss_z)#

A function analyzes the bunch with initail coords attributes assuming the vectors of coordinates transformation x_out = A*x_in + b, where x_in the initial coordinates, and x_out final. The results are matrix A (7x7) with the last column as a vector b. It returns 0 if unsuccessful or the size of the statistics otherwise.

A function analyzes two bunches assuming the vectors of coordinates transformation x_out = A*x_in + b, where x_in the initial coordinates, and x_out final. The results are matrix A (7x7) with the last column as a vector b. The function uses the initial coordinates attributes as x_in and the usual coordinates as x_out. It returns 0 if unsuccessful or the size of the statistics otherwise. For statistics it uses the weights according to Gaussian distribution with Twiss parameters.