clear all;

% As built parameters for H1 with new ITMs - September 2014

% From Hiro - how to interpret numbers in the T1300954 table 3
% When HR side curvature is 1934m, the curvature seen from AR side is 1934/1.45 = 1334m, if there were no extra lens.
% When there is a diverging lens, say 82km in LLO ITMY, the HR side looks more curved seen from AR side, i.e., 1/ (1.45/1934 + 1/82e3) = 1312m.
% This corresponds to 1312 * 1.45 = 1903m effective HR side curvature seen from AR side.
% That way, -82km (divergence lens of 82km) in LIGO-T1300954 is the same as what you get by 1934-30.9m.


R_ITMX = 1939.3 + (-10.92*2*1.457); % From https://dcc.ligo.org/LIGO-T1300954
tITMX =  200e-3;   % optic thickness
nITMX = 1.45;      % index of refraction

R_ITMY = 1939.2 + (1.56*2*1.457); % From https://dcc.ligo.org/LIGO-T1300954
tITMY =  200e-3;  
nITMY = 1.45;      
%ITM_FL = 100e10;

R_CPX = inf;        
tCPX =  100e-3;   
nCPX = 1.45; 

R_CPY = inf;         
tCPY =  100e-3;   
nCPY = 1.45; 

R_BS = inf;

R_PRM = -10.9478;         
w_PRM = 2.24e-3;
nPRM = 1.45;  
R_PR2 = -4.5443;
nPR2 = 1.45;   
R_PR3 = 36.021 ;
w_PR3 = 54e-3;      
nPR3 = 1.45;  

R_SRM = -5.715 ;       
tSRM =  0.0750;   
nSRM = 1.45;        
R_SR2 = -6.4057;       
nSR2 = 1.45;  
R_SR3 = 35.973; 
nSR3 = 1.45;  

ROC_PMMT2 = -6.240;
ROC_PMMT1 = 12.800;
tPRM = 0.0750;
w_PRM = 2.24*1e-3;
idxPRM = 1.45;  % index of refraction

% From Paul's finesse file with as-built IO parameters for H1

dPRM_SM2_eff = 0.4135;
dSM2_PMMT2_eff = 1.1745;
dPMMT2_PMMT1_eff = 1.1704;
dSM1_PMMT1_eff = 1.2938;

dPRM_SM2     = dPRM_SM2_eff;
dSM2_PMMT2   = dSM2_PMMT2_eff;                            
dPMMT2_PMMT1 = dPMMT2_PMMT1_eff + 1e-2;

% Power recycling cavity as in E1200274-v3
 
dPRM_PR2 = 16.6128; 
dPR2_PR3 = 16.1626;
dPR3_BSHR = 19.5381;

dBSHR_BSAR = 68.5e-3;
dBSAR_CPX1 = 4.829;
dCPX1_CPX2 = 100e-3;
dCPX2_ITXAR = 20e-3;
dITXAR_ITXHR = 200e-3;

% Signal recycling cavity

dSRM_SR2 = 15.7566;
dSR2_SR3 = 15.4435;
dSR3_BSAR = 19.3661 ;
dBSAR_BSHR = 68.4e-3;

dBSHR_CPY1 = 4.847;
dCPY1_CPY2 = 100e-3;
dCPY2_ITYAR = 20e-3;
dTYAR_ITYHR = 200e-3;

dSRM_OM1 = 3.646;    
dOM1_OM2 = 1.395;                  
dOM2_OM3 = 0.708; 
R_OM1 = 4.6;
R_OM2 = 1.7;
nOM1 = 1.45;
tOM1 = 3/8 * 25.4 * 1e-3; % OM1 thickness

