%**************************************************************************
%pid_anal_param
%This file contains all the parameters required by the analysis program.
%
%Zachary Wolf
%12/05/06

%Input file information
INPUT_FILE_DIR = 'c:\Magdata\slac_und_2\';      %Directory where data is located, results go there also
INPUT_FILE_NAME = 'bscanz_dat.001';             %Name of data file to analyze
INPUT_FILE_TYPE = 'ZVXYBXYH';                   %File type, gives format: ZVXYBXYH, ZBXYH, ZBYH, ZVYH, ZBYH_ANL, ZBYH_DESY

%Measurement data correction file information
CORR_REQUIRED = true;                           %Logical variable whether to apply a correction to the measured fields
CORR_FILE = 'c:\Magdata\Earth Field Correction\earth_field_corr.dat';  %Name of file containing additive correction data
CORR_FILE_TYPE = 'CORR_ZBXY';                   %File type, gives format

%Analysis Parameters
ELEC_GAMMA = 26692.7;                           %Electron Lorentz factor
NOM_LAMBDA_U = .03;                             %Nominal undulator period (m)
NOM_K_VALUE = 3.5000;                           %Nominal K value that the undulator is shimmed to
NOM_LAMBDA_R = (1 / (2 * ELEC_GAMMA^2)) * (1 + (1 / 2) * NOM_K_VALUE^2) * NOM_LAMBDA_U; %Nominal radiation wavelength (m)
NUM_POLES = 226;                                %Number of poles
NUM_END_POLES = 4;                              %Number of poles to neglect at ends for averages, etc.
CELL_LENGTH = 3.656;                            %Undulator cell length (m)

%Final results data set
SAVE_AS_FINAL_RESULT = true;                    %Save output as a final result, true or false
RESULT_FILE_DIR = 'c:\magdata\slac_und_2\';     %Directory where final results are stored
RESULT_FILE_NAME = 'zscan_xn0060yp0002.dat';    %Name of file for final result

%General
FIG_CLOSE_ON_EXIT = false;                      %Close figures when program exits, true or false
FIG_VIS = true;                                 %Figures visible on the screen, true or false
