&run_setup lattice="EmitExchA0.lte", !use_beamline="HALFCHIC" !use_beamline="LineCavOff" !use_beamline="LineCavOn" use_beamline="Line2MidChic" !use_beamline="Line2X11" !use_beamline="CHIC_CAV_ON" sigma="%s.s", final="%s.fin", output="%s.out", magnets="%s.mag" centroid="%s.cen" p_central=26.81018 default_order=2 &end &run_control n_steps=1 first_is_fiducial=0 &end &floor_coordinates filename="%s.survey" Z0=3.822 &end &twiss_output matched=0, beta_x=11.22, beta_y=10.81, alpha_x=-0.5076, alpha_y=-0.5476, eta_x=0, etap_x=0, eta_y=0, etap_y=0, &end !&optimization_setup ! matrix_order=2 ! n_passes=20 ! log_file="optlog.txt" !&end !&optimization_term ! term = "MCHIC#1.alphax 0 0.0000001 sene" !&end !&optimization_term ! term = "MCHIC#1.alphay 0 0.0000001 sene" !&end !&optimization_term ! term = "PROBE#1.alphax 0 0.01 sene" !&end !&optimization_term ! term = "PROBE#1.alphay 0 0.01 sene" !&end !&optimization_term ! term = "PROBE#1.betax 0.1 0.1 segt" !&end !&optimization_term ! term = "END#1.alphax 0 0.00001 sene" !&end !&optimization_term ! term = "END#1.alphay 0 0.00001 sene" !&end !&optimization_variable ! name=Q2AX06, ! item=K1, ! lower_limit=-52, ! upper_limit=52 !&end !&optimization_variable ! name=Q3AX06, ! item=K1, ! lower_limit=-52, ! upper_limit=52 !&end !&optimization_variable ! name=Q1AX08, ! item=K1, ! lower_limit=-52, ! upper_limit=52 !&end !&optimization_variable ! name=Q2AX08, ! item=K1, ! lower_limit=-52, ! upper_limit=52 !&end !&optimization_variable ! name=Q3AX08, ! item=K1, ! lower_limit=-52, ! upper_limit=52 !&end !&optimization_variable ! name=Q1AX14, ! item=K1, ! lower_limit=-52, ! upper_limit=52 !&end !&optimization_variable ! name=Q2AX14, ! item=K1, ! lower_limit=-52, ! upper_limit=52 !&end !&optimization_variable ! name=Q3AX14, ! item=K1, ! lower_limit=-52, ! upper_limit=52 !&end &bunched_beam bunch="bunch.bun" first_is_fiducial=0 n_particles_per_bunch=10000, emit_nx=3.25e-6, emit_ny=3.389e-6, use_twiss_command_values = 1, Po=26.81018 !sigma_dp=0, !sigma_s=0, sigma_dp=0.012613, sigma_s=1.335e-3, !This is 4.4ps !dp_s_coupling=0.131257 momentum_chirp=9.416 ! &end !&optimize ! summarize_setup = 0; !&end &twiss_output matched=0, beta_x=11.22, beta_y=10.81, alpha_x=-0.5076, alpha_y=-0.5476, eta_x=0, etap_x=0, eta_y=0, etap_y=0, filename="%sTwiss.twi" &end &matrix_output !printout="%smatrix_Full_CavOff.m" !printout="%smatrix_Full_CavOn.m" !printout="%smatrix_All_CavOn.m" !printout="%smatrix_midChic.m" !printout="%smatrix_X11_CavOn.m" printout="%smatrixChic_CavOff.m" !printout="%smatrixChic_CavOn.m" !printout="%smatrixFirstHalfChic.m" !printout="%smatrixSecondHalfChic.m" printout_order = 2 full_matrix_only = 0 &end !&track !&end &save_lattice filename = lattice.lte &end