!            SIS-18 INJECTION CONFIGURATION FULL-LATTICE
!      translated from MIRKO format by Andrea Franchi (a.franchi@gsi.de)
 
!------------------------------------------------------------------------
!                           INTRODUCTION
!
! the SIS-18 contains 12 periods. Each period can be divided in 5 sectors:
!
!   1. the bending section [equal for all the periods]
!   2. the first multipoles section [in some periods is the drift DR3, in
!                                    others it contains thin multipoles]
!   3. the quad doublet section [equal for all the periods]
!   4. the second multipoles section [it changes at each period]
!   5. the third quad section [equal for all the periods]
!
! THE FOLLOWING ELEMENTS HAVE BEEN IGNORED: buncher, BPMs, kickers, PSE,
! and  Bypass. THE SLITS ARE CONSIDERED AS DRIFTS.
!
!------------------------------------------------------------------------

! elements of the bending section:

   DR1   DRIFT  0.645d0
   DR2   DRIFT  0.970d0
   RB    SBEND  2.617993877991 15  7.3  7.3  0.035 0.7

! elements of the quad doublet section

   DR4   DRIFT      0.6000d0
   QS1F  QUADRUPOLE 0.52d0  0.30989596d0
   QS2D  QUADRUPOLE 0.52d0 -0.49964116d0

! elements of the third quad section

   DR6   DRIFT      0.4998d0
   QS3T  QUADRUPOLE 0.4804d0  0.62221964d0

! drifts of all the other sections

    DR1P1M1  DRIFT  4.5640117d0
    DR1P1M2  DRIFT  1.9400000d0
    DR1P1M3  DRIFT  0.3350000d0
    DR1P2M1  DRIFT  0.3550000d0
    DR1P2M2  DRIFT  0.3548000d0
    DR3      DRIFT  6.8390117d0
    DR3P1M1  DRIFT  6.5040117d0
    DR3P1M2  DRIFT  0.3350000d0
    DR7P1M1  DRIFT  5.2640117d0
    DR7P1M2  DRIFT  1.2400117d0
    DR7P1M3  DRIFT  0.3350000d0

!----------------------  THE CORRECTOR ELEMENTS  ------------------------
!
! thin multipoples descrbing the corrector multipoles
!
! the sintax
!                   S01KM3QS MULTIPOLE  0        0.0d0    1

! means thath this is a skew multipole. the first (normal) integrated
! gradient must be ZERO and cannot be changed. viceversa

!                   S01KS1C  MULTIPOLE -0.075d0  0        2

! is a normal multipole and now the second (skew) integrated gradient
! must be ZERO.
!
!             MAXIMUM (ABSOLUTE) VALUES OF THE STRENGTHS     (C. Muehle)
!
!  skew quads         norm quads       skew sext        norm sext *
!     [T]                [T]             [T/m]            [T/m]
!    0.167              0.136            0.060           1 <-> 15.9
!
! these values must be divided by the magnetic RIGIDITY B*rho [T*m]
!
!               0.8 T*m < B*rho < 4.6 T*m         (SIS-18 Parameter List)
!
! in order to calculate the integrated gradients (I.G.):
!
! I.G.= STRENGTH / RIGIDITY
!
! * about the norm sext, they are used for chromaticity correction in the
! present injection scheme.  For this reason we write both the minimum
! and the maximum absolute values (SIS-18 Parameter List).
!
!    NAME             NORM I.G. SKEW I.G. MULT. ORDER (MAD-like)
!     |                 |        |        |
    S01KM3QS MULTIPOLE  0        0.0d0    1  ! skew quad period 1
    S01KS1C  MULTIPOLE -0.075d0  0        2  ! norm sext period 1  chromat
    S01KS3C  MULTIPOLE  0.000d0  0        2  ! norm sext period 1  chromat
    S02KQ4   MULTIPOLE  0.0d0    0        1  ! norm quad period 2
    S02KM3QS MULTIPOLE  0        0.d0     1  ! skew quad period 2
    S02KM5SS MULTIPOLE  0        0.d0     2  ! skew sext period 2
    S03KS1C  MULTIPOLE -0.075d0  0        2  ! norm sext period 3  chromat
    S03KS3C  MULTIPOLE  0.000d0  0        2  ! norm sext period 3  chromat
    S04KQ4   MULTIPOLE  0.0d0    0        1  ! norm quad period 4
    S04KM3QS MULTIPOLE  0        0.0d0    1  ! skew quad period 4
    S05KS1C  MULTIPOLE -0.075d0  0        2  ! norm sext period 5  chromat
    S05KS3C  MULTIPOLE  0.000d0  0        2  ! norm sext period 5  chromat
    S06KM3QS MULTIPOLE  0        0.0d0    1  ! skew quad period 6
    S07KM3QS MULTIPOLE  0        0.0d0    1  ! skew quad period 7
    S07KS1C  MULTIPOLE -0.075d0  0        2  ! norm sext period 7  chromat
    S07KS3C  MULTIPOLE  0.000d0  0        2  ! norm sext period 7  chromat
    S08KQ4   MULTIPOLE  0.0d0    0        1  ! norm quad period 8
    S08KM3QS MULTIPOLE  0        0.0d0    1  ! skew quad period 8
    S08KM5SS MULTIPOLE  0        0.0d0    2  ! skew sext period 8
    S09KS1C  MULTIPOLE -0.075d0  0        2  ! norm sext period 9  chromat
    S09KS3C  MULTIPOLE  0.000d0  0        2  ! norm sext period 9  chromat
    S10KQ4   MULTIPOLE  0.0d0    0        1  ! norm quad period 10
    S10KM3QS MULTIPOLE  0        0.0d0    1  ! skew quad period 10
    S11KS1C  MULTIPOLE -0.075d0  0        2  ! norm sext period 11 chromat
    S11KS3C  MULTIPOLE  0.000d0  0        2  ! norm sext period 11 chromat
    S12KM3QS MULTIPOLE  0        0.0d0    1  ! skew quad period 12
 
 

  end_of_basic_optic_definitions

! definitions of the sections

   BENDSECT     DR1  RB  DR2  RB
   DOUBLETSECT  QS1F  QS1F  DR4  QS2D  QS2D
   LASTQUAD     QS3T   DR6
   MULT1SECT1   DR1P1M1  S01KM3QS  DR1P1M2   S01KS1C  DR1P1M3
   MULT2SECT1   DR1P2M1  S01KS3C   DR1P2M2
   MULT1SECT2   DR3
   MULT2SECT2   DR1P2M1  S02KQ4    S02KM3QS  S02KM5SS DR1P2M2
   MULT1SECT3   DR3P1M1  S03KS1C   DR3P1M2
   MULT2SECT3   DR1P2M1  S03KS3C   DR1P2M2
   MULT1SECT4   DR3
   MULT2SECT4   DR1P2M1  S04KQ4    S04KM3QS  DR1P2M2
   MULT1SECT5   DR3P1M1  S05KS1C   DR3P1M2
   MULT2SECT5   DR1P2M1  S05KS3C   DR1P2M2
   MULT1SECT6   DR3
   MULT2SECT6   DR1P2M1  S06KM3QS  DR1P2M2
   MULT1SECT7   DR7P1M1  S07KM3QS  DR7P1M2   S07KS1C  DR7P1M3
   MULT2SECT7   DR1P2M1  S07KS3C   DR1P2M2
   MULT1SECT8   DR3
   MULT2SECT8   DR1P2M1  S08KQ4    S08KM3QS  S08KM5SS DR1P2M2
   MULT1SECT9   DR3P1M1  S09KS1C   DR3P1M2
   MULT2SECT9   DR1P2M1  S09KS3C   DR1P2M2
   MULT1SECT10  DR3
   MULT2SECT10  DR1P2M1  S10KQ4    S10KM3QS  DR1P2M2
   MULT1SECT11  DR3P1M1  S11KS1C   DR3P1M2
   MULT2SECT11  DR1P2M1  S11KS3C   DR1P2M2
   MULT1SECT12  DR3
   MULT2SECT12  DR1P2M1  S12KM3QS  DR1P2M2

! definitions of the periods

   PERIOD1   BENDSECT MULT1SECT1  DOUBLETSECT MULT2SECT1  LASTQUAD
   PERIOD2   BENDSECT MULT1SECT2  DOUBLETSECT MULT2SECT2  LASTQUAD
   PERIOD3   BENDSECT MULT1SECT3  DOUBLETSECT MULT2SECT3  LASTQUAD
   PERIOD4   BENDSECT MULT1SECT4  DOUBLETSECT MULT2SECT4  LASTQUAD
   PERIOD5   BENDSECT MULT1SECT5  DOUBLETSECT MULT2SECT5  LASTQUAD
   PERIOD6   BENDSECT MULT1SECT6  DOUBLETSECT MULT2SECT6  LASTQUAD
   PERIOD7   BENDSECT MULT1SECT7  DOUBLETSECT MULT2SECT7  LASTQUAD
   PERIOD8   BENDSECT MULT1SECT8  DOUBLETSECT MULT2SECT8  LASTQUAD
   PERIOD9   BENDSECT MULT1SECT9  DOUBLETSECT MULT2SECT9  LASTQUAD
   PERIOD10  BENDSECT MULT1SECT10 DOUBLETSECT MULT2SECT10 LASTQUAD
   PERIOD11  BENDSECT MULT1SECT11 DOUBLETSECT MULT2SECT11 LASTQUAD
   PERIOD12  BENDSECT MULT1SECT12 DOUBLETSECT MULT2SECT12 LASTQUAD

! definitions of the lattice

   A1  PERIOD1  PERIOD2  PERIOD3  PERIOD4  PERIOD5  PERIOD6
   A2  PERIOD7  PERIOD8  PERIOD9  PERIOD10 PERIOD11 PERIOD12

   machine A1 A2

   machine