Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:14:13

0001 #!/bin/bash
0002 F4A_file="Fun4All_RhoFluct.C"
0003 
0004 export USER="$(id -u -n)"
0005 export LOGNAME=${USER}
0006 export HOME=/sphenix/u/${LOGNAME} #(or /star/u/${LOGNAME} or /sphenix/u/${LOGNAME} or /eic/u/${LOGNAME})
0007  
0008 source /opt/sphenix/core/bin/sphenix_setup.sh -n
0009 source /opt/sphenix/core/bin/setup_local.sh $HOME/install_rhofluct
0010 # source /opt/sphenix/core/bin/setup_local.sh $HOME/install_dual
0011 
0012 # print the environment - needed for debugging
0013 printenv
0014 
0015 # this is how you run your Fun4All_G4_sPHENIX.C macro in batch: 
0016 nevnt=$1
0017 jet_R=$2
0018 out_name=$3
0019 calo_list=$4
0020 bbc_list=$5
0021 global_list=$6
0022 
0023 
0024 # Define the source file and destination directory
0025 if [ ! -e "$F4A_file" ]; then
0026     cp "../$F4A_file" "./"
0027 fi
0028 
0029 
0030 echo root.exe -q -l ../$F4A_file\($nevnt,$jet_R,\"$out_name\",\"$calo_list\",\"$bbc_list\",\"$global_list\",0\);
0031 root.exe -q -l ../$F4A_file\($nevnt,$jet_R,\"$out_name\",\"$calo_list\",\"$bbc_list\",\"$global_list\",0\);
0032 
0033 echo all done