Skip to content
Snippets Groups Projects
Commit 67c2b293 authored by zhang's avatar zhang
Browse files

08/04/2011

Add the component 'Status' for Mpoletype, this is for correctors which are used for orbit correction.
parent e3150604
Branches
Tags
No related merge requests found
......@@ -16,13 +16,17 @@ typedef struct globvalrec {
CODimax; /* maximum number of cod search before
failing */
double CODeps; // precision for closed orbit finder
Vector CODvect; // closed orbit
long int bpm; // family index of bpm
long int hcorr; // family index of horizontal corrector for orbit correction
long int vcorr; // family index of vertical corrector for orbit correction
long int qt; // family index of skew quadrupole
int gs; // girder start marker
int ge; // girder end marker
Vector CODvect; // closed orbit; beam position at the first element of lattice
// family index for special elements
long int bpm; // family index of bpm
long int hcorr; // family index of horizontal corrector which are used for orbit correction
long int vcorr; // family index of vertical corrector which are used for orbit correction
long int qt; // family index of skew quadrupole
int gs; // family number of start girder
int ge; // family number of end girder
// matrix
Matrix OneTurnMat, // oneturn matrix
Ascr,
Ascrinv,
......@@ -73,20 +77,24 @@ struct DriftType {
struct MpoleType {
int Pmethod; // Integration Method
int PN; // Number of integration steps
long quadFF1; /* Entrance quadrupole Fringe field flag */
long quadFF2; /* Exit quadrupole Fringe field flag */
double quadFFscaling; /* quadrupole Fringe field scaling factor flag */
long sextFF1; /* Entrance sextupole Fringe field flag */
long sextFF2; /* Exit sextupole Fringe field flag */
long quadFF1; /* Entrance quadrupole Fringe field flag */
long quadFF2; /* Exit quadrupole Fringe field flag */
double quadFFscaling; /* quadrupole Fringe field scaling factor flag */
long sextFF1; /* Entrance sextupole Fringe field flag */
long sextFF2; /* Exit sextupole Fringe field flag */
bool Status; /* specific for correctors used for orbit correction. If true, use the corrector
to correct orbit, if false, not use. */
// Displacement Errors
Vector2 PdSsys; // systematic [m]
Vector2 PdSrms; // rms [m]
Vector2 PdSrnd; // random error? [m]
Vector2 PdSsys; // systematic displacement error[m]
Vector2 PdSrms; // rms value of the displacement error[m]
Vector2 PdSrnd; // (normal)random scale factor to displacement error PdSrms
// Roll angle
double PdTpar; // design [deg], if not equal zero, then skew multipole
double PdTpar; // design rotation angle, if not equal zero, then skew multipole[deg]
double PdTsys; // systematic [deg]
double PdTrms; // rms [deg]
double PdTrnd; // random error??? [deg]
double PdTrms; // rms rotation error of the element[deg]
double PdTrnd; // (normal)random scale factor to rotation error PdTrms
// Multipole strengths
mpolArray PBpar; // design field strength
mpolArray PBsys; // systematic multipole errors
......@@ -257,14 +265,14 @@ struct CellType {
long int Knum; // Element Kid #
double S; // Position in the ring [m]
CellType* next_ptr; // pointer to next cell (for tracking)
Vector2 dS, // Transverse displacement
dT; // dT = (cos(dT), sin(dT))
Vector2 dS, // displacement error of the element[m]
dT; // rotation error of the element[degree], dT = (cos(dT), sin(dT))
elemtype Elem; // Structure (name, type)
Vector2 Nu, // Phase advances
Alpha, // Alpha functions (redundant)
Beta, // beta fonctions (redundant)
Eta, Etap; // dispersion and its derivative (redundant)
Vector BeamPos; // Last position of the beam this cell
Vector BeamPos; // position of the beam at the cell;
Matrix A, // Floquet space to phase space transformation
sigma; // sigma matrix (redundant)
Vector2 maxampl[PLANES]; /* Horizontal and vertical physical
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment