State Class¶
-
class
State
(object)¶ FLAME beam state class for Python API.
Attributes - reference beam
pos
z position [m] ref_beta
Lorentz [1] ref_bg
Lorentz [1] ref_gamma
Lorentz [1] ref_IonEk
Kinetic energy [eV/u] ref_IonEs
Nucleon mass [eV/u] ref_IonQ
Macro weight [1] ref_IonW
Total energy [eV/u] ref_IonZ
Charge to mass ratio [1] ref_phis
Absolute phase [rad] ref_SampleFreq
Sampling frequency [Hz] ref_SampleIonK
Phase speed [rad] last_caviphi0
Driven phase of the last rf cavity [deg] transmat
Transfer matrix of the last element Attributes - actual beam
beta
Lorentz [1] bg
Lorentz [1] gamma
Lorentz [1] IonEk
Kinetic energy [eV/u] IonEs
Nucleon mass [eV/u] IonQ
Macro weight [1] IonW
Total energy [eV/u] IonZ
Charge to mass ratio [1] phis
Absolute phase [rad] SampleFreq
Sampling frequency [Hz] SampleIonK
Phase speed [rad] moment0
Centroids of the all charge states. moment0_env
Weighted average of centroids for the all charge states. moment0_rms
Weighted average of rms size for the all charge states. moment1
Envelope matrixes of the all charge states. moment1_env
Weighted average of envelope matrixes for the all charge states.
pos
¶float: z position of the reference beam. [m]
ref_beta
¶float: Lorentz of the reference beam. [1]
ref_bg
¶float: Lorentz of the reference beam. [1]
ref_gamma
¶float: Lorentz of the reference beam. [1]
ref_IonEk
¶float: Kinetic energy of the reference beam. [eV/u]
ref_IonEs
¶float: Nucleon mass of the reference beam. [eV/u]
ref_IonQ
¶float: Macro weight of the reference beam. [1]
ref_IonW
¶float: Total energy of the reference beam. [eV/u]
ref_IonZ
¶float: Charge to mass ratio of the reference beam. [1]
ref_phis
¶float: Absolute synchrotron phase of the reference beam. [rad]
ref_SampleFreq
¶float: Sampling frequency of the reference beam. [Hz]
ref_SampleIonK
¶float: Phase speed of the reference beam. [rad]
last_caviphi0
¶float: Driven phase of the last rf cavity. [deg]
transmat
¶list of matrix[7,7]: Transfer matrix of the last element. This matrix is applied to moment0 and moment1 directly.
beta
¶list of float: Lorentz of the all charge states. [1]
bg
¶list of float: Lorentz of the all charge states. [1]
gamma
¶list of float: Lorentz of the all charge states. [1]
IonEk
¶list of float: Kinetic energy of the all charge states. [eV/u]
IonEs
¶list of float: Nucleon mass of the all charge states. [eV/u]
IonQ
¶list of float: Macro weight of the all charge states. [1]
IonW
¶list of float: Total energy of the all charge states. [eV/u]
IonZ
¶list of float: Charge to mass ratio of the all charge states. [1]
phis
¶list of float: Absolute synchrotron phase of the all charge states. [rad]
SampleFreq
¶list of float: Sampling frequency of the all charge states. [Hz]
SampleIonK
¶list of float: Phase speed of the all charge states. [rad]
moment0
¶Centroids of the all charge states.
list of vector[7]: with [mm, rad, mm, rad, rad, MeV/u, 1].
moment0_env
¶Weighted average of centroids for all charge states.
vector[7]: with [mm, rad, mm, rad, rad, MeV/u, 1].
moment0_rms
¶Weighted average of rms beam envelopes (2nd order moments) for the all charge states.
vector[7]: rms of with [mm, rad, mm, rad, rad, MeV/u, 1].
moment1
¶Envelope matrixes of the all charge states.
list of matrix[7,7]:
Cartisan product of with [mm, rad, mm, rad, rad, MeV/u, 1] .
moment1_env
¶Weighted average of envelope matrixes for the all charge states.
matrix[7,7]:
Cartisan product of with [mm, rad, mm, rad, rad, MeV/u, 1] .