&run_setup
 lattice = help.lte,
 use_beamline = HELP,
 output = %s.out,
 centroid = %s.cen,
 sigma = %s.sig,
 final = %s.fin,
 parameters = %s.par,
 magnets = %s.mag,
 losses = %s.loss,
 default_order = 2,
 p_central_mev = 5.0
&end

&matrix_output
 printout=%s.mpr,
 printout_order=2,
 full_matrix_only=1,
 SDDS_output=%s.mat,
 SDDS_output_order=2
&end

&run_control
 n_steps = 1,
 !n_indices = 1,
 reset_rf_for_each_step = 1
&end

!&vary_element name=ACCL380A, item=PHASE,  index_number=0, index_limit=1,
!        enumeration_file = scan.sdds, enumeration_column = PHASES &end
!&vary_element name=ACCL380B, item=PHASE,  index_number=0, index_limit=1,
!        enumeration_file = scan.sdds, enumeration_column = PHASES &end
!&vary_element name=ACCL380C, item=PHASE,  index_number=0, index_limit=1,
!        enumeration_file = scan.sdds, enumeration_column = PHASES &end	
!&vary_element name=ACCL430A, item=PHASE,  index_number=0, index_limit=1,
!        enumeration_file = scan.sdds, enumeration_column = PHASES &end
!&vary_element name=ACCL430B, item=PHASE,  index_number=0, index_limit=1,
!        enumeration_file = scan.sdds, enumeration_column = PHASES &end
!&vary_element name=ACCL430C, item=PHASE,  index_number=0, index_limit=1,
!        enumeration_file = scan.sdds, enumeration_column = PHASES &end
	
&twiss_output
 filename=%s.twi
 matched = 0,
 beta_x = 5.466603230022,
 alpha_x = -4.954448737138,
 beta_y = 5.466603230022,
 alpha_y = -4.954448737138,
 output_at_each_step = 0
&end

&bunched_beam
 n_particles_per_bunch = 100000,
 one_random_bunch = 0,
 emit_nx = 1.0e-6,
 emit_ny = 1.0e-6,
 beta_x = 5.466603230022,
 alpha_x = -4.954448737138,
 beta_y = 5.466603230022,
 alpha_y = -4.954448737138,
 sigma_dp = 0.001,
 sigma_s = 250e-6,
 distribution_type[0] = 3*"gaussian",
 distribution_cutoff[0] = 3*3,
 symmetrize = 1,
 enforce_rms_values[0] = 1,1,1,
 bunch = %s.bun
&end

&floor_coordinates
 filename=%s.flr,
 X0=0,
 Z0=28.6769447,
 theta0=0,
 include_vertices=1,
 magnet_centers=1
&end

&track
&end
