%**************************************************************************
%k_comp_param
%This file contains the parameters used by the K value
%comparison program.
%
%Zachary Wolf, 4/7/09

%Parameters
K_NOM = 3.5;
DKDX = -2.69;  %(1/m)
DKDT = -K_NOM * 0.001;  %(1/C) Only the undulator is included, the hall probe is not, but it also has a sensitivity temperature coefficient

%Run Parameters
COMPARE_NAME = 'SN13, Reference Undulator';
OUTPUT_DIR = 'C:\Magdata\Reference Undulator\';

%Analysis files
ii = 0;
%ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0001\Fine Tuning\Z Scans\Run 059\id_anal.mat';
ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0002\Fine Tuning\Z Scans\Run 005\id_anal.mat';
ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0003\Fine Tuning\Z Scans\Run 005\id_anal.mat';
ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0004\Fine Tuning\Z Scans\Run 005\id_anal.mat';
ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0005\Fine Tuning\Z Scans\Run 005\id_anal.mat';
ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0006\Fine Tuning\Z Scans\Run 006\id_anal.mat';
ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0007\Fine Tuning\Z Scans\Run 005\id_anal.mat';
ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0008\Fine Tuning\Z Scans\Run 004\id_anal.mat';
ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0009\Fine Tuning\Z Scans\Run 003\id_anal.mat';
ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0010\Fine Tuning\Z Scans\Run 005\id_anal.mat';
ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0011\Fine Tuning\Z Scans\Run 010\id_anal.mat';
ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0012\Fine Tuning\Z Scans\Run 005\id_anal.mat';
ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0013\Fine Tuning\Z Scans\Run 004\id_anal.mat';
ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0014\Fine Tuning\Z Scans\Run 003\id_anal.mat';
ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0015\Fine Tuning\Z Scans\Run 004\id_anal.mat';
%ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0016\Fine Tuning\Z Scans\Run 002\id_anal.mat';
ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0017\Fine Tuning\Z Scans\Run 006\id_anal.mat';
ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0018\Fine Tuning\Z Scans\Run 006\id_anal.mat';
ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0019\Fine Tuning\Z Scans\Run 005\id_anal.mat';
%ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0020\Fine Tuning\Z Scans\Run 012\id_anal.mat';
ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0021\Fine Tuning\Z Scans\Run 017\id_anal.mat';
ii = ii + 1;  ANL_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0022\Fine Tuning\Z Scans\Run 005\id_anal.mat';

%Fiducialization files
ii = 0;
%ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0001\Mechanical Measurements\DATA FILES\SN 13 POLE TIPS POST-ALIGNMENT QDS_TB 13-JUN-2007.TXT';
ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0002\Mechanical Measurements\DATA FILES\SN 13 POLE TIPS POST-ALIGNMENT QDS_TB 27-JUL-2007.TXT';
ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0003\Mechanical Measurements\DATA FILES\SN 13 POLE TIPS POST-ALIGNMENT QDS_TB 02-OCT-2007.TXT';
ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0004\Mechanical Measurements\DATA FILES\SN 13 POLE TIPS POST-ALIGNMENT QDS_TB 14-NOV-2007.TXT';
ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0005\Mechanical Measurements\DATA FILES\SN 13 POLE TIPS POST-ALIGNMENT QDS_TB 13-DEC-2007.TXT';
ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0006\Mechanical Measurements\DATA FILES\SN 13 POLE TIPS POST-ALIGNMENT QDS_TB 23-JAN-2008.TXT';
ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0007\Mechanical Measurements\DATA FILES\SN 13 POLE TIPS POST-ALIGNMENT QDS_TB 03-MAR-2008.TXT';
ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0008\Mechanical Measurements\DATA FILES\SN 13 POLE TIPS POST-ALIGNMENT QDS_TB 07-APR-2008.TXT';
ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0009\Mechanical Measurements\DATA FILES\SN13 POLE TIPS POST-ALIGNMENT QDS_TB 06-JUN-2008.TXT';
ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0010\Mechanical Measurements\DATA FILES\SN 13 POLE TIPS POST-ALIGNMENT QDS_TB 11-JUL-2008.TXT';
ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0011\Mechanical Measurements\DATA FILES\SN 13 POLE TIPS POST-ALIGNMENT QDS_TB 25-AUG-2008.TXT';
ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0012\Mechanical Measurements\DATA FILES\SN 13 POLE TIPS POST-ALIGNMENT QDS_TB 23-SEP-2008.TXT';
ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0013\Mechanical Measurements\DATA FILES\SN 13 POLE TIPS POST-ALIGNMENT QDS_TB 23-OCT-2008.TXT';
ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0014\Mechanical Measurements\DATA FILES\SN 13 POLE TIPS POST-ALIGNMENT QDS_TB 30-OCT-2008.TXT';
ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0015\Mechanical Measurements\DATA FILES\SN 13 POLE TIPS POST-ALIGNMENT QDS_TB 18-NOV-2008.TXT';
ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0017\Mechanical Measurements\DATA FILES\SN 13 POLE TIPS POST-ALIGNMENT QDS_TB 12-JAN-2009.TXT';
ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0018\Mechanical Measurements\DATA FILES\SN13 POLE TIPS POST-ALIGNMENT QDS_TB 20-FEB-2009.TXT';
ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0019\Mechanical Measurements\DATA FILES\SN 13 POLE TIPS POST-ALIGNMENT QDS_TB 20-MAR-2009.TXT';
%ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0020\Mechanical Measurements\DATA FILES\SN13 POLE TIPS POST-ALIGNMENT QDS_TB 17-APR-2009.TXT';
ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0021\Mechanical Measurements\DATA FILES\SN 13 POLE TIPS POST-ALIGNMENT QDS_TB 03-JUN-2009.TXT';
ii = ii + 1;  FID_INPUT_FILE{ii} = 'V:\MET\MagServe\MagData\LCLS\Undulator\L143-112000-13\DATASET0022\Mechanical Measurements\DATA FILES\SN 13 POLE TIPS POST-ALIGNMENT QDS_TB 07-JUL-2009.TXT';

%Run descriptions
ii = 0;
%ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 1';
ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 2';
ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 3';
ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 4';
ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 5';
ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 6';
ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 7';
ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 8';
ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 9';
ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 10';
ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 11';
ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 12';
ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 13';
ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 14';
ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 15';
%ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 16';
ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 17';
ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 18';
ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 19';
%ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 20';
ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 21';
ii = ii + 1;  INPUT_NAME{ii} = 'Data Set 22';

