Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2026-04-06 08:10:18

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 new
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 # This is has to be after sourcing the setup_local.sh, otherwise ROOT_INCLUDE_PATH will be overwritten by the setup scripts
0014 # export WORKSPACE=/sphenix/user/hjheng/sPHENIXRepo
0015 # export ROOT_INCLUDE_PATH=$WORKSPACE/macros/common:$ROOT_INCLUDE_PATH
0016 
0017 # $1 is the output file name. Make sure the output directory exists
0018 # get the output directory from the output file path
0019 outputdir=$(dirname "$1")
0020 if [ ! -d "$outputdir" ]; then
0021   echo "Output directory $outputdir does not exist, creating it now."
0022   mkdir -p "$outputdir"
0023 fi
0024 
0025 ./main131 $1 $2 $3
0026 
0027 ./Xi_fraction $1 $4
0028 
0029 echo all done