File indexing completed on 2025-08-05 08:15:28
0001
0002
0003
0004
0005
0006
0007 export USER="$(id -u -n)"
0008 export LOGNAME=${USER}
0009 export HOME=/sphenix/u/${LOGNAME}
0010
0011 source ${HOME}/.bash_login
0012
0013
0014
0015
0016
0017 condor=true
0018 condorrun=0
0019 condorjobs=500
0020 fullrun=true
0021 fname="DST_TRIGGERED_EVENT_run2pp_new_2024p001-00042797-%04d.root"
0022 ofname1="store34485/42797/0/zdcneutronlocpol_42797_%04d.root"
0023 ofname2="store34485/42797/0/zdcneutronlocpol_42797_%04d_%04d.root"
0024
0025 if [ "$condor" = false ]; then
0026
0027 startevent=100000
0028 index=0
0029 filename=$(printf "$fname" $index)
0030
0031 if [ "$fullrun" = true ]; then
0032 outname=$(printf "$ofname1" $index)
0033 root -l -q "Fun4All_ZDCNeutronLocPol.C(\"$filename\",\"$outname\")"
0034 else
0035 outname=$(printf "$ofname2" $index $startevent)
0036 root -l -q "Fun4All_ZDCNeutronLocPol.C(\"$filename\",\"$outname\", $startevent)"
0037 fi
0038
0039
0040 else
0041
0042 startevent=$(( ${1}*100000))
0043 filename=$(printf "$fname" $(( ${1} + condorrun * condorjobs )))
0044
0045 if [ "$fullrun" = true ]; then
0046 outname=$(printf "$ofname1" $(( ${1} + condorrun * condorjobs )))
0047 root -l -q "Fun4All_ZDCNeutronLocPol.C(\"$filename\",\"$outname\")"
0048 else
0049 outname=$(printf "$ofname2" ${1} ${1})
0050 root -l -q "Fun4All_ZDCNeutronLocPol.C(\"$filename\",\"$outname\", $startevent)"
0051 fi
0052
0053 fi