io_path{input =in,output=out,logfile=log.txt}
!---------------------------------------------------
! 6 magnet s-type bunch compressor
! R=+-5.3  --> r56=-0.099369
!---------------------------------------------------
lattice{
        dipole  ! 1st dipole
              {position{rho=0.0,psi=0.0,marker=d1a}
               properties{r=-6.2000000}
               position{rho=0.5,psi=0.0,marker=d1b}
              }
        dipole  ! 2nd dipole
              {position{rho=2.88,psi=0.0,marker=d2a}
               properties{r=6.2000000}
               position{rho=3.38,psi=0.0,marker=d2b}
              }
        dipole  ! 3rd dipole
              {position{rho=3.88,psi=0.0,marker=d3a}
               properties{r=6.2000000}
               position{rho=4.38,psi=0.0,marker=d3b}
              }
        dipole  ! 4th dipole
              {position{rho=9.63953438088206,psi=0.0,marker=d4a}
               properties{r=-6.2000000}
               position{rho=10.1395343808821,psi=0.0,marker=d4b}
              }
        dipole  ! 5th dipole
              {position{rho=10.6395343808821,psi=0.0,marker=d5a}
               properties{r=-6.2000000}
               position{rho=11.1395343808821,psi=0.0,marker=d5b}
              }
        dipole  ! 6th dipole
              {position{rho=13.5195343808821,psi=0.0,marker=d6a}
               properties{r=6.2000000}
               position{rho=14.0195343808821,psi=0.0,marker=d6b}
              }
       }

!---------------------------------------------------
! particle distribution
!---------------------------------------------------
particles{reference_momentum  =reference_particle
          reference_point_x   =0.0
          reference_point_y   =0.0
          reference_point_phi =0.0
          format=fmt1,array=#file{name=bc3_in.fmt1}
         }

!---------------------------------------------------
! online monitors
!---------------------------------------------------
online_monitor{name=sub_bunch.dat,type=subbunch
               start_time_c0=now
               end_time_marker=d6b,end_time_shift_c0=2.0
               time_step_c0=all
              }
online_monitor{name=steps.dat,type=steps
               start_time_c0=now
               end_time_marker=d6b,end_time_shift_c0=2.0
               time_step_c0=all
              }
online_monitor{name=p1.fmt3,type=phase,format=fmt3,particle=1
               start_time_c0=now
               end_time_marker=d6b,end_time_shift_c0=1.0
               time_step_c0=all
              }
!online_monitor{name=x.fmt3,type=phase,format=fmt3,particle=all
!               start_time_c0=now
!               end_time_marker=d6b,end_time_shift_c0=1.0
!               time_step_c0=1.0
!              }

!---------------------------------------------------
! force definition
!---------------------------------------------------
forces{type=projected sigma_long=0.000001 par1=1 par2=5000}
!forces{type=none}
!---------------------------------------------------
! tracking
!---------------------------------------------------
  track_step{precondition=yes
             iterative=2
             error_per_ct=0.001
             error_weight_momentum=0.0

             ct_step_min=0.005
             ct_step_max=0.50
             ct_step_first=0.10
             increase_factor=1.05
             arc_factor=0.1
             duty_steps=yes
            }

  tracker{end_time_marker=d6b,end_time_shift_c0=1.00}

!---------------------------------------------------
! offline monitors
!---------------------------------------------------
  monitor{format=fmt1,name=bc3_out.fmt1}

exit
