%**************************************************************************
%This function gets the shim parameters from the file pid_shim_param.m.
%
%Input:
%param, structure containing the analysis parameters, used in calculations of shim parameter values
%
%Output:
%shim_param, parameter structure
%
%Zachary Wolf
%12/23/05

function [shim_param] = pid_shim_get_param()

%Set parameter values by executing the parameter file
pid_shim_param;

%Put the parameters in the parameter structure
shim_param.input_file_dir = INPUT_FILE_DIR;
shim_param.input_file_name = INPUT_FILE_NAME;
shim_param.setgap_shim_range = SETGAP_SHIM_RANGE;
shim_param.setgap_shim_bin_size = SETGAP_SHIM_BIN_SIZE;
shim_param.traj_num_seg = TRAJ_NUM_SEG;
shim_param.traj_shift_max = TRAJ_SHIFT_MAX;
shim_param.traj_shift_accum_max = TRAJ_SHIFT_ACCUM_MAX;
shim_param.x_traj_end_shim_pole_num = X_TRAJ_END_SHIM_POLE_NUM;
shim_param.y_traj_end_shim_pole_num = Y_TRAJ_END_SHIM_POLE_NUM;
shim_param.x_traj_shim_par = X_TRAJ_SHIM_PAR;
shim_param.y_traj_shim_par = Y_TRAJ_SHIM_PAR;
shim_param.phaserr_num_seg = PHASERR_NUM_SEG;
shim_param.phaserr_pos_delta_max = PHASERR_POS_DELTA_MAX;
shim_param.phaserr_neg_delta_max = PHASERR_NEG_DELTA_MAX;
shim_param.phaserr_gap_shim_width = PHASERR_GAP_SHIM_WIDTH;
shim_param.phaserr_gap_shim_nom_gap = PHASERR_GAP_SHIM_NOM_GAP;
shim_param.phaserr_gap_shim_corr_fact = PHASERR_GAP_SHIM_CORR_FACT;
shim_param.phaserr_phase_shim_par = PHASERR_PHASE_SHIM_PAR;
shim_param.k_shim_cant_angle = K_SHIM_CANT_ANGLE;

%Done
