Changeset 19484


Ignore:
Timestamp:
04/04/19 17:44:14 (6 years ago)
Author:
Daniela Dorner
Message:
added check for cases where both the rawfile is not in the archive and the information not in the DB
File:
1 edited

Legend:

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

    r19201 r19484  
    118118         query="SELECT Mjd(fRunStop)-40587-0.00011574 FROM RunInfo WHERE fNight="$runnumber" AND fRunID="$filenum
    119119         tstop2=`sendquery`
     120         if [ "$tstart" = "" ] || [ "$tstop" = "" ] || [ "$runtype" = "n/a" ]
     121         then
     122            printprocesslog "WARN: "$rawfile" not available and one of the following information empty in DB: fRunStart("$tstart"), fRunStop("$tstop"), fRunTypeKey("$runtype") "
     123            continue
     124         fi
    120125      else
    121126         #checkfitsfile=`fverify $rawfile  2>/dev/null | grep '0 error(s)'`
     
    160165      then
    161166         #echo $magicweatherfile" "$tstart" "$tstop
    162          #root -q -b -l fact/processing/magicweather.C\("\"$magicweatherfile\""\,$tstart\,$tstop\) | grep "result"
     167         printprocesslog "DEBUG root -q -b -l fact/processing/magicweather.C\("\"$magicweatherfile\""\,"$tstart"\,"$tstop"\)"
    163168         mtemps=( `root -q -b -l fact/processing/magicweather.C\("\"$magicweatherfile\""\,$tstart\,$tstop\) | grep "result" | grep -E -o '[-]?[0-9]+[.]?[0-9]*'` )
     169         check1=$?
     170         case $check1 in
     171            0)   printprocesslog "INFO got info from "$magicweatherfile
     172                 ;;
     173            *)   printprocesslog "WARN getting info from "$magicweatherfile" failed (check1="$check1")."
     174                 ;;
     175         esac
    164176         #echo ${mtemps[@]}
    165177         if [ "${mtemps[0]}" == "" ]
Note: See TracChangeset for help on using the changeset viewer.