Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:21:34

0001 #!/bin/bash
0002 
0003 # This is an example bash script to run the basic macro associated to AnaTutorial.
0004 # It should only be considered an example! You need to modify the base directory and install directory to wherever you are working
0005 # You should also adjust the line immediately below to mat
0006  export USER="$(id -u -n)"
0007  export LOGNAME=${USER}
0008  export HOME=/phenix/u/${LOGNAME} # (or /star/u/${LOGNAME} or /sphenix/u/${LOGNAME} or /eic/u/${LOGNAME})
0009 
0010 # Set the baseDir to your directory where your macro exists
0011 baseDir=/sphenix/user/jdosbo/git/sphenix/tutorials/AnaTutorial/macro
0012 # Set the install directory to the path where your AnaTutorial library is installed
0013 MYINSTALL=/sphenix/user/jdosbo/install
0014 
0015 echo $baseDir
0016 
0017 echo "Processing job "$1
0018 
0019 # Source the newest sPHENIX build environment
0020 source /opt/sphenix/core/bin/sphenix_setup.sh -n
0021 # Source the local environment with your AnaTutorial installation
0022 source /opt/sphenix/core/bin/setup_local.sh $MYINSTALL
0023 
0024 # print the environment - needed for debugging (when you ask for help)
0025 printenv
0026 
0027 cd $baseDir
0028 
0029 # Run the Fun4All macro for 4 events
0030 root -b -q Fun4All_AnaTutorial_sPHENIX.C\(4\)