Index: trunk/DataCheck/Processing/FillNumEvts.sh
===================================================================
--- trunk/DataCheck/Processing/FillNumEvts.sh	(revision 15391)
+++ trunk/DataCheck/Processing/FillNumEvts.sh	(revision 15393)
@@ -12,7 +12,7 @@
 #        `date +%Y/%m/%d --date="-156hour"` `date +%Y/%m/%d --date="-180hour"` `date +%Y/%m/%d --date="-204hour"` \
         )
-#dates=( `find -L $ziprawdata -mindepth 3 -type d | sort -r | sed "s/\${ziprawdata_for_sed}//g" | sed -e 's/^\///'` ) #all available dates in /loc_data/zipraw
+#dates=( `find -L $auxdata -mindepth 3 -type d | sort -r | grep -v bad | sed "s/\${auxdata_for_sed}//g" | sed -e 's/^\///'` ) #all available dates in /loc_data/zipraw
 
-#dates=( "2013/04/13" )
+#dates=( "2013/04/17" )
 
 printprocesslog "INFO processing the following night(s): "${dates[@]}
@@ -30,21 +30,19 @@
 for date in ${dates[@]}
 do 
-   date2=`echo $date | sed -e 's/\///g'`
    runnumber=`echo $date | sed -e 's/\///g'`
-   inpath=$anapath"/"$source
    
-   query="SELECT fSourceKEY FROM RunInfo WHERE fNight="$date2" AND fSourceKey > 0 AND fRunTypeKEY=1 GROUP BY fSourceKey "
-   sources=( `sendquery` )
-   for source in ${sources[@]}
-   do 
-      echo "processing "$source
-      
-      inpath=$anapath/$source
-      echo "run numevts.C for night "$runnumber" (run-wise processing) "
-      root -q -b -l $mars2/fact/processing/numevents.C\("\"$runnumber"\"\,"\"$inpath"\"\,"\"$resulttable1"\"\,kFALSE\,kFALSE\)
+   # data which are not processed in LP
+   if [ $runnumber -lt 20121212 ]
+   then
+      continue
+   fi
+   
+   echo "run numevts.C for night "$runnumber" (run-wise processing) "
+   printprocesslog "run numevts.C for night "$runnumber" (run-wise processing) "
+   printprocesslog "root -q -b -l $mars2/fact/processing/numevents.C\("\"$runnumber"\"\,"\"$anapath"\"\,"\"$resulttable1"\"\,kFALSE\,kFALSE\)"
+   root -q -b -l $mars2/fact/processing/numevents.C\("\"$runnumber"\"\,"\"$anapath"\"\,"\"$resulttable1"\"\,kFALSE\,kFALSE\)
 
-      #echo "run numevts.C for night "$runnumber" (night-wise processing) "
-      #root -q -b -l fact/processing/numevts.C\("\"$runnumber"\"\,"\"$inpath"\"\,"\"$resulttable2"\"\,kFALSE\,kTRUE\)
-   done
+   #echo "run numevts.C for night "$runnumber" (night-wise processing) "
+   #root -q -b -l fact/processing/numevts.C\("\"$runnumber"\"\,"\"$inpath"\"\,"\"$resulttable2"\"\,kFALSE\,kTRUE\)
 
 done
