ln -s /home/dlr/development9_linux/g-2/files/pulse_127cm.dat ln -s /home/dlr/development9_linux/g-2/magneticfield/ring_inject_bfield3d_wuzheng_extended.dat ln -s /home/dlr/development9_linux/g-2/magneticfield/inf_field_alone.dat ln -s /home/dlr/development9_linux/g-2/files/muons/VDstop_DS_436_12000.dat ln -s /home/dlr/development9_linux/g-2/files/muons/particles_endm4m5_100.txt ln -s /home/dlr/development9_linux/g-2/files/muons/particles_M4M5End_400_mod.txt ln -s /home/dlr/development9_linux/g-2/files/KICKER_E989_NoRolledEdges.dat ln -s /home/dlr/development9_linux/g-2/files/quads/ ln -s /home/dlr/development9_linux/g-2/files/quad_curvilinear/ ln -s /home/dlr/development9_linux/g-2/files/quad_curvilinear_single_plate/ ln -s /home/dlr/development9_linux/g-2/files/calorimeter_lattice. ln -s /home/dlr/development9_linux/g-2/files/fiber_monitor_lattice. ln -s /home/dlr/development9_linux/g-2/files/walls_free.bmad ln -s /home/dlr/development9_linux/g-2/files/walls_quads2-4.bmad ln -s /home/dlr/development9_linux/g-2/files/backleg/ ln -s /home/dlr/development9_linux/g-2/files/bmad_all_configs_fringe_inf_grid. ln -s /home/dlr/development9_linux/g-2/files/bmad_grid_fringe_inf.bmad ln -s /home/dlr/development9_linux/g-2/files/bmad_grid_fringe_inf_custom.bmad ln -s /home/dlr/development9_linux/g-2/magneticfield/BrFourier2016.dat ln -s /home/dlr/development9_linux/g-2/magneticfield/BzFourier20170628_LogID983.dat ln -s /home/dlr/development9_linux/g-2/files/g-2_FFT_04032015.lat ln -s /home/dlr/development9_linux/g-2/files/g-2_FODO_04032015.lat ln -s /home/dlr/development9_linux/g-2/files/parameters_g-2_03112015.lat ln -s /home/dlr/development9_linux/g-2/field_maps/kicker1data.txt ln -s /home/dlr/development9_linux/g-2/field_maps/kicker1data_halftail.txt ln -s /home/dlr/development9_linux/g-2/field_maps/kicker1data_05_tail.txt ln -s /home/dlr/development9_linux/g-2/field_maps/kicker1data_flattop.dat ln -s /home/dlr/development9_linux/g-2/files/pulse_shapes/ ln -s /home/dlr/development9_linux/g-2/files/fiber_energy_loss/eloss.dat ln -s /home/dlr/development9_linux/g-2/field_maps/v0/ ln -s /home/dlr/development9_linux/g-2/files/pulse_shapes/avgBeamPulsePDF.txt ln -s /home/dlr/development9_linux/production/bin/g2_tracking
cd < DIR >
svn co
https://accserv.lepp.cornell.edu/svn/<REPOS_PATH>.
To find the correct < REPOS_PATH >, use the repository web viewer. For example. to make a local copy of the bmad library, use the commands:
cd <DIR>
svn co https://accserv.lepp.cornell.edu/svn/trunk/src/g-2
This will create the directory <DIR>/g-2
svn update
cd <DIR>/g-2
mk # Produces production libraries and/or executables
Or use "mkd" instead of "mk" if you want to the debug versions of the libraries and/or executables.
Production libraries and executables are put in the directory:
<DIR>/production
and debug libraries and executables are put in:
<DIR>/debug
The executables are: g2_tracking, analyze_harp, EnergyDispersion, fieldmap_test, read_quad_grid, and a few others
ln -s ../../g-2/files/pulse_127cm.dat ln -s ../../g-2/magneticfield/ring_inject_bfield3d_wuzheng_extended.dat ln -s ../../g-2/magneticfield/inf_field_alone.dat ln -s ../../g-2/files/muons/VDstop_DS_436_12000.dat ln -s ../../g-2/files/muons/particles_endm4m5_100.txt ln -s ../../g-2/files/KICKER_E989_NoRolledEdges.dat ln -s ../../g-2/files/quads/ ln -s ../../g-2/files/calorimeter_lattice. ln -s ../../g-2/files/fiber_monitor_lattice. ln -s ../../g-2/files/walls_free.bmad ln -s ../../g-2/files/walls_quads2-4.bmad ln -s ../../g-2/files/backleg/ ln -s ../../g-2/files/bmad_all_configs_fringe_inf_grid. ln -s ../../g-2/files/bmad_grid_fringe_inf.bmad ln -s ../../g-2/magneticfield/BrFourier2016.dat ln -s ../../g-2/magneticfield/BzFourier20170628_LogID983.dat ln -s ../../g-2/files/g-2_FFT_04032015.lat ln -s ../../g-2/files/g-2_FODO_04032015.lat ln -s ../../g-2/files/parameters_g-2_03112015.latThe command /g-2/softlink (or softlink_lnx, or softlink_gm2) depending on what machines you are running will create all the links
The phase space distribution of muons is generated according to specified parameters, or read from a file. The distribution is adjusted to match the twiss parameters computed in the previous step according to the following procedure:
cp /home/dlr/.bashrc_g2 .bashrc
Before you do this you might want to rename your own .bashrc file so that it is not overwritten and then combine the two.