Back to home page

sPhenix code displayed by LXR

 
 

    


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

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