Ignore:
Timestamp:
02/02/17 03:30:07 (8 years ago)
Author:
Daniela Dorner
Message:
fixed bug (for all source 3 sigma limit was used), some cleanup
File:
1 edited

Legend:

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

    r18742 r18743  
    11#!/bin/bash
    22#
     3
     4# missing: install cron for current night
     5# change logging to processlog
     6# evaluate output of all nights
     7# implement DB-entries for being called
    38
    49source `dirname $0`/../Sourcefile.sh
     
    202207      fi
    203208      # missing: probably one should check also 20 min binning (s example 20170103)
     209      # missing: check on still available observation time
    204210
    205211      echo "    "$i" "${results[$num+2]}"-"${results[$num+3]}"["${results[$num+8]}"] "$exc" "$sig
     
    219225      esac
    220226
     227      # missing: maybe use $donetriggerfile for all cases - update of nightly case can be triggered differently
     228      # missing: adapt triggerfilename for type 3 (slopelimit)
    221229      if [ $trigger -eq 1 ]
    222230      then
     
    356364   # limits
    357365   siglimit=3.0 # sigma
    358    exclimit=0.5 # CU
    359    siglimit=2.0
    360    exclimit=0.5
    361366   if [ $sourcekey -eq 1 ] || [ $sourcekey -eq 2 ]
    362367   then
    363368      exclimit=3.0 # CU
     369   else
     370      exclimit=0.5 # CU
    364371   fi
    365372   # only if rate goes even higher, we have to react
     
    369376   echo "[General gamma-ray MoU]"
    370377   echo " nightly binning..."
     378   # checking nightly binning
    371379   bin=
    372    # checking nightly binning
    373380   get_query_nightly_binning
    374    #echo $query
    375381   results=( `sendquery` )
    376    #echo ${results[@]}
    377382   evaluate_result
    378    #continue
    379    
    380    # binning
     383   
     384   # 20 min binning
    381385   bin=20
    382386   echo " "$bin" min binning..."
    383 
    384387   get_query_minute_binning
    385    #echo $query
    386388   results=( `sendquery` )
    387    #echo ${results[@]}
    388389   evaluate_result
    389390   
     
    397398      echo "[Trigger to MAGIC 501 proposal]"
    398399      echo " nightly binning..."
     400      # checking nightly binning
    399401      bin=
    400       # checking nightly binning
    401402      get_query_nightly_binning
    402       #echo $query
    403403      results=( `sendquery` )
    404       #echo ${results[@]}
    405404      evaluate_result
    406       #continue
    407 
    408       # binning
     405      # 20 min binning
    409406      bin=20
    410407      echo " "$bin" min binning..."
    411 
    412408      get_query_minute_binning
    413       #echo $query
    414409      results=( `sendquery` )
    415       #echo ${results[@]}
    416410      evaluate_result
    417411   fi
     
    422416   then
    423417      echo "[Trigger to MAGIC - fast rise/decay]"
    424       # keep thresholds low (or do not use in evaluation)
    425       siglimit=2.0
    426       exclimit=0.5
     418      ## keep thresholds low (or do not use in evaluation)
     419      #siglimit=2.0
     420      #exclimit=0.5
    427421      # limits in slope
    428422      slopelimit=1.0 # 1CU/h
    429       siglimith=3.0 # 1 sigma in 1 hour
    430      
     423      siglimit=3.0 # 1 sigma in 1 hour
    431424      # binning
    432425      bin=30
    433426      echo " "$bin" min binning..."
    434427      get_query_minute_binning
    435       #echo $query
    436428      results=( `sendquery` )
    437       #echo ${results[@]}
    438429      evaluate_result
    439430   fi
Note: See TracChangeset for help on using the changeset viewer.