Changeset 19399 for trunk/DataCheck


Ignore:
Timestamp:
11/15/18 13:24:06 (6 years ago)
Author:
Daniela Dorner
Message:
improved logging, added ignore-option for filling events
Location:
trunk/DataCheck/Processing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Processing/CalcSource.sh

    r19197 r19399  
    6565   then
    6666      printprocesslog "INFO "$numchanged" rows were changed in DB => "$night"_"$runid" is already processed => continue."
    67       echo "continue"
    6867      continue
    6968   fi
    7069
     70   # get file-id
    7171   query="SELECT FileID FROM CalcSourceStatus WHERE fNight="$night" AND fRunID="$runid
    7272   fileid=`sendquery`
    73    echo "INFO calculating source position for "$fileid
     73   #echo "INFO calculating source position for "$fileid
    7474   printprocesslog "INFO calculating source position for "$fileid
    7575   echo "INFO filling star events for "$fileid >> $logfile
  • trunk/DataCheck/Processing/FillEvents.sh

    r19196 r19399  
    6666   then
    6767      printprocesslog "INFO "$numchanged" rows were changed in DB => "$night"_"$runid" is already processed => continue."
    68       echo "continue"
    6968      continue
    7069   fi
    71 
    7270   
    73    echo "INFO filling star events for "$night"_"$runid
     71   # get file id and star-file name
     72   #echo "INFO filling star events for "$night"_"$runid
    7473   printprocesslog "INFO filling star events for "$night"_"$runid
    7574   echo "INFO filling star events for "$night"_"$runid >> $logfile
    7675   night2=`echo $night | cut -c 1-4`/`echo $night | cut -c 5-6`/`echo $night | cut -c 7-8`
    7776   starfile=$datapath/star/$night2/$night"_"`printf %03d $runid`"_I.root"
     77
     78   # some runs have problems, e.g. double event numbers
     79   #  these have an ignore-errors flag set in the DB
     80   ignoreoption=""
     81   query="SELECT fIgnoreErrors FROM StarEventsFilledStatus WHERE fNight="$night" AND fRunID="$runid
     82   ignore=`sendquery`
     83   if [ $ignore -eq 1 ]
     84   then
     85      ignoreoption="--ignore-errors"
     86   fi
    7887   
    7988   # fill star files to DB
    8089   printprocesslog  "INFO /swdev_nfs/FACT++.r19188-bin/root2sql -C $starrc $starfile"
    81    /swdev_nfs/FACT++.r19188-bin/root2sql -C $starrc $starfile >> $logfile 2>&1
     90   /swdev_nfs/FACT++.r19188-bin/root2sql -C $starrc $ignoreoption $starfile >> $logfile 2>&1
    8291   check1=$?
    8392   case $check1 in
Note: See TracChangeset for help on using the changeset viewer.