Changeset 15393 for trunk/DataCheck/Processing
- Timestamp:
- 04/20/13 20:58:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Processing/FillNumEvts.sh
r15391 r15393 12 12 # `date +%Y/%m/%d --date="-156hour"` `date +%Y/%m/%d --date="-180hour"` `date +%Y/%m/%d --date="-204hour"` \ 13 13 ) 14 #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/zipraw14 #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 15 15 16 #dates=( "2013/04/1 3" )16 #dates=( "2013/04/17" ) 17 17 18 18 printprocesslog "INFO processing the following night(s): "${dates[@]} … … 30 30 for date in ${dates[@]} 31 31 do 32 date2=`echo $date | sed -e 's/\///g'`33 32 runnumber=`echo $date | sed -e 's/\///g'` 34 inpath=$anapath"/"$source35 33 36 query="SELECT fSourceKEY FROM RunInfo WHERE fNight="$date2" AND fSourceKey > 0 AND fRunTypeKEY=1 GROUP BY fSourceKey " 37 sources=( `sendquery` ) 38 for source in ${sources[@]} 39 do 40 echo "processing "$source 41 42 inpath=$anapath/$source 43 echo "run numevts.C for night "$runnumber" (run-wise processing) " 44 root -q -b -l $mars2/fact/processing/numevents.C\("\"$runnumber"\"\,"\"$inpath"\"\,"\"$resulttable1"\"\,kFALSE\,kFALSE\) 34 # data which are not processed in LP 35 if [ $runnumber -lt 20121212 ] 36 then 37 continue 38 fi 39 40 echo "run numevts.C for night "$runnumber" (run-wise processing) " 41 printprocesslog "run numevts.C for night "$runnumber" (run-wise processing) " 42 printprocesslog "root -q -b -l $mars2/fact/processing/numevents.C\("\"$runnumber"\"\,"\"$anapath"\"\,"\"$resulttable1"\"\,kFALSE\,kFALSE\)" 43 root -q -b -l $mars2/fact/processing/numevents.C\("\"$runnumber"\"\,"\"$anapath"\"\,"\"$resulttable1"\"\,kFALSE\,kFALSE\) 45 44 46 #echo "run numevts.C for night "$runnumber" (night-wise processing) " 47 #root -q -b -l fact/processing/numevts.C\("\"$runnumber"\"\,"\"$inpath"\"\,"\"$resulttable2"\"\,kFALSE\,kTRUE\) 48 done 45 #echo "run numevts.C for night "$runnumber" (night-wise processing) " 46 #root -q -b -l fact/processing/numevts.C\("\"$runnumber"\"\,"\"$inpath"\"\,"\"$resulttable2"\"\,kFALSE\,kTRUE\) 49 47 50 48 done
Note:
See TracChangeset
for help on using the changeset viewer.