Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2026-07-16 08:11:22

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="79507 79524 79525 79526 79563 79565 79567 79568 79593 79594 79595 79596 79597 79598 79599 79614 79617 79627 79652 79653 79656 79660 79707 79708 79709 79711 79712"
0009 #runs="79507 79524 79525 79526 79563 79565 79567"
0010 #runs="79568 79593 79594 79595 79596 79597 79598 79599"
0011 #runs="79614 79617 79627 79652 79653 79656 79660 79707 79708 79709 79711 79712"
0012 runs="795079 79510 79511 79512 79513 79514 79515 79516 79528 79529 79530 79570 79571 79572 79600"
0013 # DST_TRKR_TRACKS_run3pp_ana538_2025p011_v001-00079509-0029.list
0014 
0015 for run in $runs
0016 do
0017   currentOptionsFile=$(grep 'Queue' ${submissionFile} | awk '{print $NF}' | awk -F "/" '{print $NF}')
0018   newOptionsFile=masterList_run${run}.list
0019   
0020   if [ -f ${listDir}/${newOptionsFile} ]; then
0021     echo "Current options file: ${currentOptionsFile}"
0022     echo "New options file:  ${newOptionsFile}s"
0023     sed -i -e "s/${currentOptionsFile}/${newOptionsFile}/g" ${submissionFile}
0024     condor_submit ${submissionFile}
0025   else
0026     echo "File ${newOptionsFile} is missing"
0027   fi
0028 
0029 done