! !!!!!!!!!!!!!!!!!! no run the fitted stuff ----------------------
! propagate a given beam from IP to .1 m after dowsntream triplet

&divide_elements
    name = *
    maximum_length = 0.001
&end


&run_setup
        lattice="finalfoc.lte",    
        use_beamline="FinFocDPMQ"
        default_order = 1
        sigma="%s.s",
        final="%s.fin",
        output="%s.out",
        magnets="%s.mag"
        centroid="%s.cen"
        p_central= 500.
&end

&run_control

        n_steps = 1,
!       n_indices = 1,
&end


&matrix_output
        printout ="%s.matext"
        printout_order = 2
        SDDS_output="%s.mat"
        SDDS_output_order=2
        full_matrix_only=1
&end



!&twiss_output
!        matched=0
!	concat_order=1
!	alpha_x= <alphax>
!	beta_x = <betax>
!	alpha_y= <alphay>
!	beta_y = <betay>
!	
!	filename="%s.twi"
!&end

&floor_coordinates
        filename="%s.survey"
&end

&bunched_beam

        bunch                    = %s.bun,
        n_particles_per_bunch    = 1000,
        time_start               = 0,
        emit_nx                  =   5.e-6,
        emit_ny                  =   5.e-6,
        use_twiss_command_values = 1,
        sigma_dp                 =  2.23e-7,
        sigma_s                  =  2.5689e-7,
        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,
        symmetrize               = 1,
        enforce_rms_values[0]    = 1,
        enforce_rms_values[1]    = 1,
        enforce_rms_values[2]    = 1,
        momentum_chirp           = 0,
        one_random_bunch         = 1
!        Po=<offset>
&end

&track
&end

