Warning, /analysis/coldQCDTracking/SingleTrackAN/macros/create_queue_file.txt is written in an unsupported language. File is not indexed.
0001 1. For the run identified, use the following command on lustre to find out how many total segments there are.
0002
0003 find /sphenix/lustre01/sphnxpro/production/run3pp/physics/ana573_2026p003_v001/DST_TRKR_TRACKS/run_00079500_00079600/ -maxdepth 1 -name "*00079516-*" | wc -l
0004
0005 Change the run number and ana tag accordingly. The output of this command will be the total number of segments NSEG
0006
0007 2. Create the queue file with `awk`. The inputs are the RUNNUMBER and NSEG (replace accordingly)
0008
0009 awk 'BEGIN { for(i=0; i<=<NSEG>-1; i++) printf "<RUNNUMBER>, %05d\n", i }' > queue_<RUNNUMBER>_segs.list
0010