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

Add global variables to do ID correction: N_Fam_max; N_Fam; Q_Fam[];

Add function ID_corr0 ( ) which is written by Mao-sen Qiu at Tai wan light source.
parent f3ce2a2e
Branches
Tags
No related merge requests found
...@@ -18,8 +18,9 @@ extern double x_max_FMA, y_max_FMA, delta_FMA; ...@@ -18,8 +18,9 @@ extern double x_max_FMA, y_max_FMA, delta_FMA;
extern double delta_DA_; extern double delta_DA_;
extern const int N_Fam_max; //number of quadrupoles for ID correction
extern char ae_file[max_str], fe_file[max_str], ap_file[max_str]; extern char ae_file[max_str], fe_file[max_str], ap_file[max_str];
extern int N_calls, N_steps; extern int N_calls, N_steps, N_Fam, Q_Fam[]; //For ID correction
extern double disp_wave_y; extern double disp_wave_y;
extern Vector2 beta_ref; extern Vector2 beta_ref;
...@@ -258,6 +259,9 @@ void reset_quads(void); ...@@ -258,6 +259,9 @@ void reset_quads(void);
void ini_ID_corr(void); void ini_ID_corr(void);
// From Taiwan light source
bool ID_corr0(void);
bool ID_corr(const int N_calls, const int N_steps); bool ID_corr(const int N_calls, const int N_steps);
void get_param(const char *param_file); void get_param(const char *param_file);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment