io_path{input =in,output=out,logfile=log.txt}
!---------------------------------------------------
! C-Type: BC2  >>> r56= mm <<< r=+-1.77621064363
!              >>> r56= mm <<< r=+
!                  r56=   mm <<< r=+-
!---------------------------------------------------
lattice{
        dipole  ! 1st dipole
              {position{rho=0.0,psi=0.0,marker=d1a}
               properties{r=-1.764}
               position{rho=0.5,psi=0.0,marker=d1b}
              }
        dipole  ! 2nd dipole
              {position{rho=1.0,psi=0.0,marker=d2a}
               properties{r=1.764}
               position{rho=1.5,psi=0.0,marker=d2b}
              }
        dipole  ! 3rd dipole
              {position{rho=2.463,psi=0.0,marker=d3a}
               properties{r=1.764}
               position{rho=2.963,psi=0.0,marker=d3b}
              }
        dipole  ! 4th dipole
              {position{rho=3.463,psi=0.0,marker=d4a}
               properties{r=-1.764}
               position{rho=3.963,psi=0.0,marker=d4b}
              }
       }
!---------------------------------------------------
! 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=bc2_in.fmt1}
         }


!---------------------------------------------------
! online monitors
!---------------------------------------------------
online_monitor{name=sub_bunch.dat,type=subbunch
               start_time_c0=now
               end_time_marker=d4b,end_time_shift_c0=2.0
               time_step_c0=all
              }
online_monitor{name=steps.dat,type=steps
               start_time_c0=now
               end_time_marker=d4b,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=d4b,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=d4b,end_time_shift_c0=1.0
!               time_step_c0=1.0
!              }

!---------------------------------------------------
! force definition
!---------------------------------------------------
forces{type=projected sigma_file=my_sub_prj_1um.dat sigma_long=file
       par1=1 par2=5000 test=no
      }
!forces{type=none}
!---------------------------------------------------
! tracking
!---------------------------------------------------
  track_step{precondition=yes
             iterative=2
             error_per_ct=0.001
             error_weight_momentum=0.0

             ct_step_min=0.01
             ct_step_max=0.05
             ct_step_first=0.05
             increase_factor=1.2
             arc_factor=0.3
             duty_steps=yes
            }

  tracker{end_time_marker=d4b,end_time_shift_c0=1.00}

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

exit
