Ignore:
Timestamp:
05/13/13 16:00:23 (12 years ago)
Author:
mknoetig
Message:
add fTriggerRateTimeOverx and TriggerRateRms to FillEffectiveOn.sh
File:
1 edited

Legend:

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

    r15602 r15604  
    33# option
    44doupdate="yes" # update all entries (needed when new fields have been added)
    5 doupdate="no" # fill only entries which are not yet existing (default)
     5#doupdate="no" # fill only entries which are not yet existing (default)
    66
    77
     
    2727# get last 3, 6 or 9 nights
    2828dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` `date +%Y/%m/%d --date="-60hour"` \
    29 #        `date +%Y/%m/%d --date="-84hour"` `date +%Y/%m/%d --date="-108hour"` `date +%Y/%m/%d --date="-132hour"` \
     29        `date +%Y/%m/%d --date="-84hour"` `date +%Y/%m/%d --date="-108hour"` `date +%Y/%m/%d --date="-132hour"` \
    3030#        `date +%Y/%m/%d --date="-156hour"` `date +%Y/%m/%d --date="-180hour"` `date +%Y/%m/%d --date="-204hour"` \
    3131        )
     
    161161         if [ "${effectiveon[3]}" == "" ]
    162162         then
     163            query=$query", fTriggerRateTimeOver100=NULL"
     164         else
     165            query=$query", fTriggerRateTimeOver100="${effectiveon[3]}
     166         fi
     167         if [ "${effectiveon[4]}" == "" ]
     168         then
    163169            query=$query", fTriggerRateTimeOver125=NULL"
    164170         else
    165             query=$query", fTriggerRateTimeOver125="${effectiveon[3]}
     171            query=$query", fTriggerRateTimeOver125="${effectiveon[4]}
     172         fi
     173         if [ "${effectiveon[5]}" == "" ]
     174         then
     175            query=$query", fTriggerRateTimeOver150=NULL"
     176         else
     177            query=$query", fTriggerRateTimeOver150="${effectiveon[5]}
     178         fi
     179         if [ "${effectiveon[6]}" == "" ]
     180         then
     181            query=$query", fTriggerRateTimeOver175=NULL"
     182         else
     183            query=$query", fTriggerRateTimeOver175="${effectiveon[6]}
     184         fi
     185         if [ "${effectiveon[7]}" == "" ]
     186         then
     187            query=$query", fTriggerRateRms=NULL"
     188         else
     189            query=$query", fTriggerRateRms="${effectiveon[7]}
    166190         fi
    167191      else
     
    169193         query=$query", fEffectiveOnRms=NULL"
    170194         query=$query", fOnTime=NULL"
     195         query=$query", fTriggerRateTimeOver100=NULL"
    171196         query=$query", fTriggerRateTimeOver125=NULL"
     197         query=$query", fTriggerRateTimeOver150=NULL"
     198         query=$query", fTriggerRateTimeOver175=NULL"
     199         query=$query", fTriggerRateRms=NULL"
     200
    172201      fi
    173202     
     
    175204      query=$query" WHERE fNight="$runnumber" AND fRunID="$filenum
    176205
    177       #echo $query
     206      echo $query
    178207      #echo "EffectiveOn:${effectiveon[0]} # RMSEffectiveOn:${effectiveon[1]} # SumOnTime:${effectiveon[2]} # TriggerTimeOver125:${effectiveon[3]}"
    179208      #send query to DB
Note: See TracChangeset for help on using the changeset viewer.