Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 #! /bin/bash
0002 export USER="$(id -u -n)"
0003 export LOGNAME=${USER}
0004 export HOME=/sphenix/u/${LOGNAME}
0005 source /opt/sphenix/core/bin/sphenix_setup.sh -n $9
0006 
0007 export MYINSTALL=$HOME/install
0008 export LD_LIBRARY_PATH=$MYINSTALL/lib:$LD_LIBRARY_PATH
0009 export ROOT_INCLUDE_PATH=$MYINSTALL/include:$ROOT_INCLUDE_PATH
0010 
0011 source /opt/sphenix/core/bin/setup_local.sh $MYINSTALL
0012 
0013 # $7 is the output file name
0014 # break up the output file name into the directory and the file name
0015 OUTDIR=$(dirname $7)
0016 if [ ! -d $OUTDIR ]; then
0017     echo "$OUTDIR does not exist, creating it"
0018     mkdir -p $OUTDIR
0019 fi
0020 
0021 # print the environment - needed for debugging
0022 # printenv
0023 # this is how you run your Fun4All_G4_sPHENIX.C macro in batch:
0024 root.exe -q -b Fun4All_G4_sPHENIX.C\($1,$2,$3,\"$4\",\"$5\",$6,\"$7\",$8\)
0025 
0026 echo all done