Function OrbitUtils::transport_mtrx(Bunch *, Bunch *, Matrix *, int, int, int)#
Defined in File ParticlesWithIdFunctions.cc
Function Documentation#
-
int OrbitUtils::transport_mtrx(Bunch *bunch_in, Bunch *bunch_out, Matrix *A_mtr, int appl_twiss_x, int appl_twiss_y, int appl_twiss_z)#
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. We assume that bunch_in and bunch_out are sorted according to Id PartAttr, and bunch_out has less particles than bunch_in (some of them could be lost). 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. We assume that bunch_in and bunch_out are sorted according to Id PartAttr, and bunch_out has less particles than bunch_in (some of them could be lost). 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.