Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:19:40

0001 #!/usr/bin/bash
0002 
0003 if [ $# -eq 0 ]
0004 then
0005   echo "No runnumber supplied"
0006   exit 0
0007 fi
0008 
0009 if [ $# -eq 1 ]
0010 then
0011   echo "No type or runnumber supplied"
0012   exit 0
0013 fi
0014 
0015 type=$1
0016 runnumber=$(printf "%08d" $2)
0017 
0018 for i in {0..23}
0019 do
0020 ebdc=$(printf "%02d" $i)
0021 /bin/ls -1 /sphenix/lustre01/sphnxpro/physics/tpc/${type}/TPC_ebdc${ebdc}_${type}-${runnumber}-* > tpc${ebdc}.list
0022 if [ ! -s tpc${ebdc}.list ]
0023 then
0024   echo tpc${ebdc}.list empty, removing it
0025   rm  tpc${ebdc}.list
0026 fi
0027 done