Ignore:
Timestamp:
05/28/19 11:37:54 (5 years ago)
Author:
Daniela Dorner
Message:
added run type grb
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/QuickLook/Step1.sh

    r19474 r19520  
    134134callistofiles=( `find $calpath -type f -name $date*-calibration.log 2>/dev/null | sort` )
    135135
    136 # get number of dataruns from DB
    137 query="SELECT Count(*) FROM RunInfo WHERE fNight="$date" AND fRunTypeKey=1"
     136# get number of runs from DB
     137query="SELECT Count(*) FROM RunInfo WHERE fNight="$date" AND fRunTypeKey in (1, 18)" # data and grb
    138138numdataruns=`sendquery`
    139139query="SELECT Count(*) FROM RunInfo WHERE fNight="$date" AND fRunTypeKey=6"
     
    254254      # treat other files (.fits.fz)
    255255      runtype=`$factpath/fitsdump -h $localfile  2>/dev/null | grep RUNTYPE | grep -E -o "['][a-z0-9._-]+[']" | sed -e "s/'//g" -e "s/_/-/g" -e "s/[.]//g"`
    256       if [ "$runtype" != "data" ]
     256      if [ "$runtype" != "data" ] && [ "$runtype" != "grb" ]
    257257      then
    258258         # skip a non-data run when it has not 1000 evts
     
    283283      callistolog=$calpath"/"$date"_"$runnum"-calibration.log"
    284284      case $runtype in
    285          data) # treat D-runs
     285         data|grb) # treat D-runs
    286286            if [ "$fileerror" = "yes" ]
    287287            then
Note: See TracChangeset for help on using the changeset viewer.