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 
0006 if [ "$#" -ne 4 ]; then
0007     echo "Usage: $0 <file directory> <input file name> <output file name> <software version>"
0008     exit 1
0009 fi
0010 
0011 # print all arguments
0012 echo "file directory: $1"
0013 echo "input file name: $2"
0014 echo "output file name: $3"
0015 echo "software version: $4"
0016 
0017 source /opt/sphenix/core/bin/sphenix_setup.sh -n $4
0018 
0019 export MYINSTALL=$HOME/install
0020 export LD_LIBRARY_PATH=$MYINSTALL/lib:$LD_LIBRARY_PATH
0021 export ROOT_INCLUDE_PATH=$MYINSTALL/include:$ROOT_INCLUDE_PATH
0022 
0023 source /opt/sphenix/core/bin/setup_local.sh $MYINSTALL
0024 
0025 INPUTFILE="$1/$2"
0026 OUTPUTFILE="$1/$3"
0027 
0028 root.exe -q -b EvtInttBCODiff.C\(\"$INPUTFILE\",\"$OUTPUTFILE\",61,0,1,0\)
0029 
0030 echo all done