% Calibration 26BC0_25 

% Coil Measurements from LCLS-II undulator quad 4078
Wire_1 = Load_wireplt_dev(1); % Main Quad field wire measurement

Str_3 = Load_strplt_dev(3); % Quad Coil - Quad Field Calib
Str_7 = Load_strplt_dev(7); % Quad Coil - Quad Field Calib
Str_14 = Load_strplt_dev(14); % Main Coil - Quad Field Calib
Str_15 = Load_strplt_dev(15); % Coil 2 - Quad Field Calib
Str_16 = Load_strplt_dev(16); % Inner Dbuck (quad) - Quad Field Calib
Str_17 = Load_strplt_dev(17); %  DQbuck - Quad Field Calib

 Quad_CC = Coil_Constant_Calc(abs(Wireplt1.meanSL_I), mean(Strplt3.TF), 'T', 636294.0578, 0.0029972, 1, 6.0, 'LCLS-II Quad 4078', 2, 1, '26BCQ0_25 Quad Coil');
 
  Main_CC_1 = Coil_Constant_Calc(abs(Wireplt1.meanSL_I), mean(Strplt7.TF), 'T', 365998.59502, 0.0029972, 1, 6.0, 'LCLS-II Quad 4078', 2, 1, '26BCQ0_25 Main 1');
   Main_CC_3 = Coil_Constant_Calc(abs(Wireplt1.meanSL_I), mean(Strplt14.TF), 'T', 365998.59502, 0.0029972, 1, 6.0, 'LCLS-II Quad 4078', 2, 1, '26BCQ0_25 Main 2');
  
   Coil2_CC = Coil_Constant_Calc(abs(Wireplt1.meanSL_I), mean(Strplt15.TF), 'T', 866305.205, 0.0029972, 1, 6.0, 'LCLS-II Quad 4078', 2, 1, '26BCQ0_25 Coil 2');
   
    Inner_Quad_CC = Coil_Constant_Calc(abs(Wireplt1.meanSL_I), mean(Strplt16.TF), 'T', 626151.948, 0.0029972, 1, 6.0, 'LCLS-II Quad 4078', 2, 1, '26BCQ0_25 Inner Quad');
    
    DQB_CC = Coil_Constant_Calc(abs(Wireplt1.meanSL_I), mean(Strplt17.TF), 'T', 636294.0578, 0.0029972, 1, 6.0, 'LCLS-II Quad 4078', 2, 1, '26BCQ0_25 DQB');
    
    Bucking_ratio_DQB_Quad = mean(Strplt3.TF)/ mean(Strplt17.TF);
     Bucking_ratio_DQB_Main = mean(Strplt14.TF)/ mean(Strplt17.TF);
    
    