Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2026-04-03 08:12:35

0001 #!/bin/bash
0002 
0003 count=0
0004 nRuns=`cat "/sphenix/u/bkimelman/analysis/wholeEventEECs/macros/queue_all.list" | wc -l`
0005 
0006 echo "nRuns: $nRuns"
0007 
0008 queueFile=queue_all_segs_jobOf25.list
0009 
0010 for run in $(cat "/sphenix/u/bkimelman/analysis/wholeEventEECs/macros/queue_all.list");
0011 do
0012     echo "working on run $run, $count / 1563"
0013     
0014     runShort=$(($run/100))
0015 
0016     nFiles=`ls /sphenix/lustre01/sphnxpro/production2/run2pp/physics/jetskimmer/ana521_2025p007_v001/run_000${runShort}00_000$((runShort+1))00/DST_JETCALO_run2pp_ana521_2025p007_v001-000${run}-*.root | wc -l`
0017 
0018     touch $queueFile
0019     for (( f=0; f<$nFiles; f+=25 ))
0020     do
0021         echo ${run}, $((f/25)) >> $queueFile
0022     done
0023 
0024     count=$((count+1))
0025 done
0026