! This element is the small gap between the "short" and "long" sections of each "single" electric quadrupole

! The first electric quadrupole's field is unique, and so Q1 must be handled separately
! The "wall" represents the Q1 short and long outer quadrupole plates that some muons will scatter through
!QUAD1_SHORT: FULLRING, angle = dThetaQShort, field_index=0.141, wall = {superimpose = .true., thickness = 0.0005, &
!                 section = {type = wall_start, s = 0.,                   v(1) = {0.05,-0.0235}, v(2) = {0.05,0.0235}}, &
!                 section = {type = wall_end,   s =  dThetaQShort*radius, v(1) = {0.05,-0.0235}, v(2) = {0.05,0.0235}}}

QUAD1_LONG:  FULLRING, angle = dThetaQLong,  field_index=0.185, wall = {superimpose = .true., thickness = 0.0005, & 
                             section={type=wall_start, s =  0, v(1) = {0.07,-0.025}, v(2) = {0.07,0.025}}, &
                             section={type=wall_end, s =  dThetaQLong*radius, v(1) = {0.07,-0.025}, v(2) = {0.07,0.025}}}

QUAD1_SHORT: FULLRING, angle = dThetaQShort, field_index=0.185, wall = { superimpose = .true., thickness = 0.0005,       &
                 section = { type = wall_start, s = 0.,                  v(1)={0.05025,-0.0235}, v(2)={0.05025, 0.0235} }, &
                 section = { type = wall_end,   s = dThetaQShort*radius, v(1)={0.05025,-0.0235}, v(2)={0.05025, 0.0235} }}

!QUAD1_LONG:  FULLRING, angle = dThetaQLong,  field_index=0.141, wall = { superimpose = .true., thickness = 0.0005,       &
!                 section = { type = wall_start, s = 0.,                  v(1)={0.05025,-0.0235}, v(2)={0.05025, 0.0235} }, &
!                 section = { type = wall_end,   s = dThetaQLong*radius,  v(1)={0.05025,-0.0235}, v(2)={0.05025, 0.0235} }}

QUAD1:       LINE = (QUAD1_SHORT, QFREE, QUAD1_LONG)

! The E-fields of Q2, Q3, and Q4 are the same, and so can be handled identically
QUAD2_SHORT:  FULLRING, angle = dThetaQShort, field_index = 0.185
QUAD2_LONG:   FULLRING, angle = dThetaQLong, field_index=0.185
QUAD3_SHORT:  FULLRING, angle = dThetaQShort, field_index = 0.185
QUAD3_LONG:   FULLRING, angle = dThetaQLong, field_index=0.185
QUAD4_SHORT:  FULLRING, angle = dThetaQShort, field_index = 0.185
QUAD4_LONG:   FULLRING, angle = dThetaQLong, field_index=0.185

QUAD:        LINE = (QUAD_SHORT, QFREE, QUAD_LONG)
