g2_tracking example input files February 28, 2018 1. g-2/examples/example1 - Start of tracking is in the ring. Decay positrons are tracked until they - hit a calorimeter, or - abs(x) > 1 m, (x is the radial distance from the magic radius) or - positron starts to move backwards in the angular arc defined by a lattice element The lattice file is Note that at line 42 of this file, 'calorimeter_lattice' is called. The calorimeter_lattice file adds the 24 calorimeters to the lattice. And if decay positrons hit any of the calorimeters, the info will be written to 'cal_hits.dat'. If line 42 is commented out, no calorimeters are added. ! :character string - BMAD format lattice file lat_file_name = 'bmad_all_configs_fringe_inf_grid_calo.' A new distribution of 10000 muons is created The transverse phase space is determined by ! : horizontal emittance at inflector assuming no losses in injection channel (m-rad) epsx = 16.6e-7 ! : vertical emittance at inflector assuming no losses in injection channel (m-rad) epsy = 16.6e-7 and the twiss parameters ! :12-real - betax, betay, alphax, alphay, etax, etapx, etay, etapy, phix, phiy, gammax, gammay at inflector twiss = 2.0, 10.0, 0., 0.0, 0.0, 0., 0., 0., 0.7, 0.7, 0., 0. The distribution can be defined at the end of the inflector () or half way through ( : Reference point within inflector for twiss parameters specified in previous line. 'end' = at inflector exit. 'center' = halfway through inflector twiss_ref = 'end' Tracking begins at the start of the injection channel (hole in the magnet iron) or in the ring the end of the inflector Here tracking it will start in the ring. This is handy if you do not want to deal with all of the losses in the injection channel, inflector, etc. !: logical - if true then start tracking the distribution at the inflector exit, if false, start tracking at end of M5 line start_tracking_at_inflector_exit = T After the distribution is created it can be offset in each of the phase space coordinates Since we are starting tracking in the ring, initial_offsets = 0 places the center of the distribution on the magic radius ! :real - x, y, z, x-angle, y-angle, deltaE/E ! - offset of beam at entrance into the hole in the ring iron, with respect to the tangent through the center of the inflector initial_offsets = -4.7671E-02 0. 0. 2.2134E-02 0. 0. !these are the offsets you need if starting at the hole in the iron initial_offsets = 0. 0. 0. 0. 0. 0. Since the distribution is initialized so that its average displacement (x,y) and transverse momenta (px,py) are zero, the kickers are set to zero since the particles start on the magic radii orbit ! : 3 reals - Bfield (T) for the three kicker mangets kicker_params%kicker_field = 0. 0. 0. ! Kick strength (Tesla) for 989 kick 1.27m kickers In order that there is muon decay and positron tracking we need to set !: logical - if true then include spin tracking of muons. Default = true spin_tracking_on = T !: logical - if true then include muon decay. Default = true muon_decay_on = T For all the details see the input.dat file Files: input.dat bmad_all_configs_fringe_inf_grid_calo. calorimeter_lattice. Also Field maps etc. are incorporated via softlinks. To create the softlinks use the command /home/dlr/development9_linux/g-2/softlink_lnx