Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:19:45

0001 #!/bin/bash
0002 
0003 source /opt/sphenix/core/bin/sphenix_setup.sh -n new  # setup sPHENIX environment in the singularity container shell. Note the shell is bash by default
0004 
0005 # Additional commands for my local environment
0006 export SPHENIX=/sphenix/u/xyu3
0007 export MYINSTALL=$SPHENIX/install
0008 
0009 # Setup MYINSTALL to local directory and run sPHENIX setup local script
0010 # to adjust PATH, LD LIBRARY PATH, ROOT INCLUDE PATH, etc
0011 source /opt/sphenix/core/bin/setup_local.sh $MYINSTALL
0012 
0013 echo "sPHENIX environment setup finished"
0014 
0015 nEvents=1000
0016 
0017 count=0
0018 total=$#
0019 
0020 inputFiles="{"
0021 for fileList in $@
0022 do
0023   if [ $count -eq $total ]; then
0024     break
0025   fi
0026   inputFiles+="\"${fileList}\","
0027   count=$((count + 1))
0028 done
0029 inputFiles=${inputFiles::-1}
0030 inputFiles+="}"
0031 echo running: run_data.sh $*
0032 root.exe -q -b Fun4All_FieldOnAllTrackersCalos.C\($nEvents,${inputFiles}\)
0033 echo Script done