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/muons/EndofM5_Valetov_withInit.dat ln -s /home/dlr/development9_linux/g-2/files/muons/INJ_TO_RING_phase_space.dat 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/BzFourier20170721.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/field_maps/run3b_run4_kicker_pulse/kicker_pulse_run3b4_4col.dat ln -s /home/dlr/development9_linux/g-2/field_maps/KickerPulse_Run3b_Run4_25887/KickerPulse_Run3b_Run4_4col_Normalized.dat ln -s /home/dlr/development9_linux//g-2/field_maps/e821_kicker_pulse.dat ln -s /home/dlr/development9_linux/g-2/files/pulse_shapes/avgBeamPulsePDF.txt ln -s /home/dlr/development9_linux/g-2/files/kickermaps/ ln -s /home/dlr/development9_linux/g-2/files/integral_fit_parameters.dat ln -s /home/dlr/development9_linux/g-2/files/spin_pitch_fit_parameters.dat ln -s /home/dlr/development9_linux/g-2/files/quads/voltage/badHVs_recon_from_trackers_v2_HV_18300V_maps_measuredBrad2016_avg_0ppm_60h_yavglim_m0pt04mm_goodearlyfit.dat ln -s /home/dlr/development9_linux/g-2/magneticfield/multipoles_run_07215.dat ln -s /home/dlr/development9_linux//g-2/files/ibms_lattice.
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 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.