{Derived from Dejan's September12-2013-2p8-10GeV.madx}

#NDIP=132;
#LARC=356.30044;
#LCELL=LARC/NDIP;

#ANAR=0.93240864;
#RATIO=0.4;
#ANGBD=ANAR/(NDIP*(1.0+2.0*RATIO));
#ANGBF=RATIO*ANGBD;

#BRHO=33.3564094763; // At reference energy of 10GeV
#QLF=0.5;
#BLD=1.250;

{Multipole Length Angle Dipole Quad Fringe AlignMode}
QF #QLF# #ANGBF# #ANGBF*BRHO/QLF# 23.670799523887 0.02 Integral
BD #BLD# #ANGBD# #ANGBD*BRHO/BLD# -17.898434633414 0.02 Integral

{Drift Length Angle}
D 0.08
O #(LCELL-(BD.Length+QF.Length*2+D.Length*2))/2#

Cell: O,QF,D,BD,D,QF,O;

{MatchScan Estart Egoal Estep Species} 
Match 10GeV 2.8GeV 0.9GeV Positron

{Match-Aperture} 
MatchEnd  

Cell,Match,Cell,MatchEnd,Cell;