&input lat_file = "/home/sw565/sw565/test_with_bmad/osc_track/jobs/will_bypass1/lat1.lat" n_turns = 4 ! number of turns n_particle = 1E2 ! number of particles in a bunch track_specie = 1 ! track position (1) or electron (-1)? default = positron i_0 = 0.01 ! bunch current in mA, default = 0.125 mA (10^9 particles in CESR) excitation_on = T ! excitation on? default = .true. damping_on = T ! damping on? default = .true. initial_offset = 0. 0. 0. 0. 0. 0. ! offset the initial bunch centroid default = 0.0 random_offset = F ! add random offsets to the bunch centroid? default = .false. set_tunes = F ! set tunes? default = .false. Qx_hz = 0.0 ! horizontal tunes set value in Hz. 0.0 means set to lattice design tune Qy_hz = 0.0 ! vertical tunes set value in Hz. 0.0 means set to lattice design tune Qz_hz = -0.0 ! longitudinal tunes set value in Hz. 0.0 means set to lattice design tune !x_emit = 10E-9 ! horizontal emittiance to generate the initial particle distribution y_emit = 3.9E-11 ! vertical emittance to generate the initial particle distribution use_init_dist = F ! use the initial distribution files for the particles? default = .false. init_dist_file = " " ! initial distribution file name turn_step = 5E3 ! record vec values after how many turns n_obs_pts= 1 ! number of observation points obs_ele_names = "p_mark" ! observation point element name feed_pick = "p_mark" ! OSC pickup undulator element name feed_kick = "k_mark" ! OSC kicker undulator element name feedback_gain = 2E-9 ! OSC amplifier gain "xi" feedback_on = T ! turn on OSC ? default = .false. use_am_factor = T ! use Alexsander Mikil factor? default = .false. display_d_s = F ! display delay on screen? default = .false. add_incoherent_kick = T ! add incoherent kick? output_last_turn = T ! output last turn particle distribution? use_dist_for_inco = T ! use bunch distribution to calculate incoherent kick? z_gauss_dist = T ! assume the bunch in a Gaussian distribution? default = .true. sigma_cons = 28.08 ! incoherent Gaussian distribution sigma sigma0 = 10E-3 ! bunch length which was used to calculate sigma_cons binsize = 0.5E-3 ! bin size used to find the bunch distribution n_tot_part = 1E9 ! total bunch particles used to calculate the slice length in histogram mode lambda = 0.8E-6 ! undulator first harmonics wavelength n_und = 4 ! undulator periods used to determine number of particles in a slice output_ds_vec = T ! output path length delay and particles vec? use_kick_file = T ! use longitudianl and transverse energy files? long_kick_file = "/home/sw565/sw565/test_with_bmad/osc_und/und/dz_kick_helical.txt" tran_kick_file = "/home/sw565/sw565/test_with_bmad/osc_track/pycode/E_array_new.txt" calc_nonlin_ds = F !calculate the nonlinear factor of ds using taylor map? default . output_tbt_vec = F ! output tbt particles coordinates? default = .false. (debug) output_co_inco_kick = F ! output coherent and incoherent kick values? default = .false. (debug) output_action = F ! output particles action each turn? default = .false. (debug) save_init_distr = F ! save initial distribution? default = .false. (debug) und_track_energy_transfer = F ! track the OSC undulator and calculate the energy transfer? (slow tracking) default = .false. output_emit = T ! output the bunch emittance? default = .true. use_real_kick = F ! passive mode for OSC? default = .false. ele_noise%key_name = "sbend" !ele_noise%mask = "B46W B47W B47AW B48W B48E B47AE B47E B46E" ele_noise%mask = "" ele_noise%s_min = 348.828 ele_noise%s_max = 708.900 ! The noise will not be applied on the elements between s_min and s_max ele_noise%attrib_name = "b_field" ele_noise%error_type = "multiplicative" ! "additive", "multiplicative", or "custom" ele_noise%start_freq = 60 !60Hz ~ T=16.7ms, 6510 turns ele_noise%fft_data(1)%a= 1E-5 ele_noise%fft_data(1)%phi = 0 ele_noise%n_turns_recalc = 1E5 ele_noise%random_jitter = T ele_noise%random_jitter_sigma = 1E-5 ele_noise%individual_ele_noise = T ele_noise%const_amp = 1.0E-5 ! For custom element noise /