! construct an orbit bump using correctors and monitors.

&run_setup
    lattice = "extraction.lte",
    p_central_mev = 1700,
    use_beamline="linear",
    magnets = %s.mag,
    parameters = %s.param0

&end

&twiss_output
        filename = %s.twi
&end

&run_control
	n_steps = 10
&end


! Define the correctors to use for steering
! This is a horizontal bump, so we restrict the horizontal correctors
&steering_element name = BUMPK1S13B, item=KICK!, tweek = 1e-6 
&end
&steering_element name = BUMPK2S13B, item=KICK!, tweek = 1e-6 
&end


&correct 
        mode = trajectory
        method = global
        n_iterations = 4
	minimum_SV_ratio[0] = 2*1e-4
	corrector_output = %s.cor
&end

&bunched_beam &end

&track &end