Update master to aliroot
[u/mrichter/AliRoot.git] / TPC / scripts / filterMissing.sh
index 1f672afa9ad0fa981cfbddb4c8df4a9fcbf602bf..e1b028da5b90fe196f135f2887a379ae369f456a 100755 (executable)
@@ -40,3 +40,20 @@ for adir in `cat run.list`; do
     echo $adir   >>ocdbPresent.list
    fi
 done; 
+
+wdir=`pwd`
+rm runMissing.list
+touch runMissing.list
+
+for adir in `cat run.list`; do
+  cd $wdir/$adir  
+  nesd=`cat esd.txt.Good| grep -c root`
+  if [ $nesd -gt 0 ] ; then  
+     ncalib=`find $wdir/$adir/ | grep -c CalibObjects`
+     if [ $ncalib -lt 1 ] ; then
+        echo Missing $adir
+        echo $adir >> $wdir/runMissing.list
+     fi;
+  fi;
+  cd $wdir
+done;