
! step2

&run_setup
    lattice = LINAC2.lte
    use_beamline=DESY_PETRA_LINAC2
    rootname=LINAC2
    p_central_mev = 50
    default_order = 3
    sigma = "<root>.sig",
    centroid = "<root>.cen",
    output = "<root>.out",
    final = "<root>.fin",
    losses="<root>.lost",
    magnets = "<root>.mag",
    parameters = "<root>.param"
    rfc_reference_output ="<root>.rfc"
    combine_bunch_statistics =1
    tracking_updates  = 1
&end


&twiss_output
    filename="<root>.twi",
    matched = 0
	beta_x=1
	alpha_x=0  
	beta_y=1
	alpha_y=0 
	output_at_each_step=1
&end

&run_control
   n_steps                   = 1,
   reset_rf_for_each_step    = 0,
   bunch_frequency = 3e6,
   first_is_fiducial = 0,
&end



&bunched_beam
    !bunch="%s.bun"
    n_particles_per_bunch = 1
    emit_nx=1.E-6
    emit_ny=1.E-6
    sigma_dp=0
    sigma_s=0.0
    beta_x = 1,
    beta_y = 1,
    eta_x  = 0,    
    distribution_type[0] = 3*"gaussian",
    distribution_cutoff[0] = 3*3,
    enforce_rms_values[0] = 3*1,
    one_random_bunch =0
&end



&track 
&end	

&stop &end



&insert_elements
			name = *,
			type = MONI,
			element_def = "wbpm: watch,filename=\"<folder>\%s-%04ld.sdds\",mode=\"centroid\""
&end










	

