! Mult-step run with errors:
! 1. Correct chromaticity, save sextuoples
! 2. Set sextupoles to zero, add bend FSE and TILT errors, plus quad offsets, then corrector orbit
!    The sextupoles are set to zero as an illustration, since this is helpful sometimes when the sextupoles
!    are very strong.  In this case, it really doesn't matter.
! 3. Turn sextupoles back on and load previous errors/correction, add strength errors for quads and sextupoles, touch up the orbit, tunes, and chromaticities
! 4. Tracking


! Step 2

&run_setup
    lattice = "<lattice>.lte",
    p_central_mev = 6000,
	rootname=<rootname>
    use_beamline= RING
    parameters = %s.param
	losses = %s.lost
!	output =%s.out
    magnets =  %s.mag
	centroid = %s.cen
!	print_statistics=0
	sigma=%s.sig
	wrap_around=0
!	random_number_seed = 13255211

&end


&twiss_output
        matched = 0
        filename = %s.twi
		radiation_integrals = 1
        output_at_each_step = 1
&end



&run_control 
             n_steps = 1
			 n_passes = 10
!			 n_passes_fiducial=1
&end




&bunched_beam
bunch =%s.bun
n_particles_per_bunch=1000 

emit_x =20e-9
emit_y  =20e-9
sigma_dp=0.001
sigma_s =0.002

 

 &end

&track &end
