Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2026-04-07 08:10:32

0001 #!/bin/bash
0002 
0003 submissionFile=myCondor.job
0004 
0005 listDir=fileLists
0006 
0007 runs="79509 79510 79511 79512 79513 79514 79515 79516 79528 79529 79530 79570 79571 79572 79600"
0008 #runs="79570 79571 79572 79600"
0009 # DST_TRKR_TRACKS_run3pp_ana538_2025p011_v001-00079509-0029.list
0010 
0011 for run in $runs
0012 do
0013   currentOptionsFile=$(grep 'Queue' ${submissionFile} | awk '{print $NF}' | awk -F "/" '{print $NF}')
0014   newOptionsFile=masterList_run${run}.list
0015   
0016   if [ -f ${listDir}/${newOptionsFile} ]; then
0017     echo "Current options file: ${currentOptionsFile}"
0018     echo "New options file:  ${newOptionsFile}s"
0019     sed -i -e "s/${currentOptionsFile}/${newOptionsFile}/g" ${submissionFile}
0020     condor_submit ${submissionFile}
0021   else
0022     echo "File ${newOptionsFile} is missing"
0023   fi
0024 
0025 done