&divide_elements name=*, type=CSBEND, divisions=50 &end

&run_setup
    	lattice = "track.new"
    	magnets = %s.mag
    	parameters = %s.param,
    	final = %s.fin,
	losses = %s.los,
	centroid=%s.cen,
	output = %s.out,
        sigma = %s.sig
    	random_number_seed = 1985,
   	p_central_mev = 2500,
    	use_beamline="MS",
    	default_order = 3,
    	concat_order = 3,
	element_divisions = 10
&end


&twiss_output 
	filename = %s.twi,
	matched = 1,
	statistics=1,
	radiation_integrals=1,
	beta_x = 13.5982e+00;  
        alpha_x = 7.8005e-05;  
    	!eta_x = -0.1278;  
    	beta_y = 1.651e+00;  
    	alpha_y = -1.9316e-07;  
        !eta_y = -0.001103;  
        output_at_each_step = 0
&end

&run_control	 
        n_steps = 1
        !n_passes = 100
&end


&bunched_beam
        n_particles_per_bunch = 100,
        distribution_type[0]     = "gaussian",
        distribution_type[1]     = "gaussian",
        distribution_type[2]     = "gaussian",
        distribution_cutoff[0]   = 3.0,
        distribution_cutoff[1]   = 3.0,
        distribution_cutoff[2]   = 3.0,
        emit_x = 25e-09,
        emit_y =0.25e-09,!with 1percent coupling 
        sigma_dp = 1e-04
        !sigma_s = 11e-4,
        !one_random_bunch=0,
        beta_x = 13.5982e+00,
        beta_y = 1.651e+00, 
        !momentum_chirp = 5,
        symmetrize = 1,
        enforce_rms_values[0] = 1,1,1,
     
&end


&track
center_on_orbit=1
&end
