Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:10:58

0001 #!/bin/bash
0002 # -----------------------------------------------------------------------------
0003 # 'RunSingleTrackCutStudyG4.sh'
0004 # Derek Anderson
0005 # 11.18.2022
0006 #
0007 # Short script to run the F4A macro
0008 # for the Track Cut Study. Called by
0009 # 'RunTrackCutStudyG4.job'
0010 #
0011 # NOTE: make sure that 'DisplayOn.C'
0012 # and 'G4setup_sPHENIX.C' are in
0013 # the same directory as you're
0014 # running this in!
0015 # -----------------------------------------------------------------------------
0016 
0017 # parameters
0018 nSkip=0
0019 
0020 # set up environment
0021 export USER="$(id -u -n)"
0022 export LOGNAME=${USER}
0023 export HOME=/sphenix/u/${LOGNAME}
0024 source /opt/sphenix/core/bin/sphenix_setup.sh
0025 printenv
0026 
0027 # run macro
0028 root -b -q "Fun4All_G4_sPHENIX_ForTrackCutStudy.C($1, \"$2\", \"$4\", \"$3\", $nSkip)"
0029 
0030 # end -------------------------------------------------------------------------