Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:20:29

0001 #!/usr/bin/bash
0002 
0003 # creates file lists for the MVTX from known locations in lustre
0004 # run number is the input argument
0005 
0006 if [ $# -eq 0 ]
0007   then
0008     echo "Creates needed lists of input files for the MVTX for a given run"
0009     echo "Usage: mvtx_makelist.sh <run number>"
0010     exit 1
0011 fi
0012 
0013 runnumber=$(printf "%08d" $1)
0014 
0015 for i in {0..5}
0016 do
0017 ls -1 /sphenix/lustre01/sphnxpro/commissioning/MVTX/cosmics/cosmics_mvtx${i}-${runnumber}-* > mvtx-flx${i}.list
0018 if [ ! -s mvtx-flx${i}.list ]
0019 then
0020   echo mvtx-flx${i}.list empty, removing it
0021   rm mvtx-flx${i}.list
0022 fi
0023 
0024 done