g2_tracking example input files October 3, 2017 Example9 g-2/examples/example9 - Start of tracking is element DQ24TOSQA of M5 line, which is 32.5cm upstream of Q021. FILE1: Copy this file to your working directory FILE2: Copy the lattice file to your working directory OTHER FILES: On Cornell linux use the command On the Fermi grid use Executed in your working directory it will create soft links to all neccessary data files The lattice file is 'bmad_all_configs_fringe_inf_grid_m5.' The m5 line is included (excluded) by the last line in the lattice file use, inj ! excludes m5 line. tracking starts at entrance to iron use, m5_to_inj_to_ring ! includes m5 line Fiber harps are included. Calorimeters (and fiber harps) can be turned on or off by commenting/uncommenting calls !call, file = calorimeter_lattice. call, file = fiber_monitor_lattice. 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 'calo_hits'. The fiber_monitor_lattice file adds the 4 harps to the lattice. Hits in fiber harps are written to 'harp_plane_hits.dat' ! :character string - BMAD format lattice file lat_file_name = 'bmad_all_configs_fringe_inf_grid_m5.' (this file calls various quad models that can be used by selective commenting of calls) Reads muon phase space distribution from 'particles_endm4m5_100.txt' muon_file = 'particles_endm4m5_100.txt' Twiss parameters at inflector exit ! :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 DQ24TOSQA of M5 line, which is 32.5cm upstream of Q021. The transfer matrix from the start (DQ24TOSQA) to the end of the inflector is computed and used to rotate the distribution the match twiss parameters at the starting point. That is, the distribution will have beta, alpha at the start of the line that will transform to the specified beta,alpha at the inflector exit. !: 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 = F After the distribution is created it can be offset in each of the phase space coordinates The offsets are at the entrance to the backleg iron with respect to the centerline of the inflector ! :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.3477E-02 0. 0. 2.0681E-02 0. 0. In order that there is muon decay and positron tracking (or not) we need to set !: logical - if true then include spin tracking of muons. Default = true spin_tracking_on = F !: logical - if true then include muon decay. Default = true muon_decay_on = F For all the details see the input.dat file Here is the complete set of data files. Create soft links to all necessary files with the command to create the following soft links ln -s /home/dlr10/development9_linux/production/bin/g2_tracking ln -s /home/dlr10/development9_linux/g-2/files/libncurses.so.6 ln -s /home/dlr10/development9_linux/g-2/files/pulse_127cm.dat ln -s /home/dlr10/development9_linux/g-2/magneticfield/ring_inject_bfield3d_wuzheng_extended.dat ln -s /home/dlr10/development9_linux/g-2/magneticfield/inf_field_alone.dat ln -s /home/dlr10/development9_linux/g-2/files/muons/VDstop_DS_436_12000.dat ln -s /home/dlr10/development9_linux/g-2/files/muons/particles_endm4m5_100.txt ln -s /home/dlr10/development9_linux/g-2/files/KICKER_E989_NoRolledEdges.dat ln -s /home/dlr10/development9_linux/g-2/files/quads/ ln -s /home/dlr10/development9_linux/g-2/files/calorimeter_lattice. ln -s /home/dlr10/development9_linux/g-2/files/fiber_monitor_lattice. ln -s /home/dlr10/development9_linux/g-2/files/walls_free.bmad ln -s /home/dlr10/development9_linux/g-2/files/walls_quads2-4.bmad ln -s /home/dlr10/development9_linux/g-2/files/backleg/ ln -s /home/dlr10/development9_linux/g-2/files/bmad_all_configs_fringe_inf_grid. ln -s /home/dlr10/development9_linux/g-2/files/bmad_grid_fringe_inf.bmad ln -s /home/dlr10/development9_linux/g-2/magneticfield/BrFourier2016.dat ln -s /home/dlr10/development9_linux/g-2/magneticfield/BzFourier20170628_LogID983.dat ln -s /home/dlr10/development9_linux/g-2/files/g-2_FFT_04032015.lat ln -s /home/dlr10/development9_linux/g-2/files/g-2_FODO_04032015.lat ln -s /home/dlr10/development9_linux/g-2/files/parameters_g-2_03112015.lat or to create the following soft links ln -s /gm2/app/users/drubin/bmad_dist_fix/production/bin/g2_tracking ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/files/libncurses.so.6 ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/files/pulse_127cm.dat ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/magneticfield/ring_inject_bfield3d_wuzheng_extended.dat ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/magneticfield/inf_field_alone.dat ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/files/muons/VDstop_DS_436_12000.dat ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/files/muons/particles_endm4m5_100.txt ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/files/KICKER_E989_NoRolledEdges.dat ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/files/quads/ ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/files/calorimeter_lattice. ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/files/fiber_monitor_lattice. ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/files/walls_free.bmad ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/files/walls_quads2-4.bmad ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/files/backleg/ ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/files/bmad_all_configs_fringe_inf_grid. ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/files/bmad_grid_fringe_inf.bmad ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/magneticfield/BrFourier2016.dat ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/magneticfield/BzFourier20170628_LogID983.dat ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/files/g-2_FFT_04032015.lat ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/files/g-2_FODO_04032015.lat ln -s /gm2/app/users/drubin/bmad_dist_fix/g-2/files/parameters_g-2_03112015.lat