Changeset 15604 for trunk/DataCheck/Processing
- Timestamp:
- 05/13/13 16:00:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Processing/FillEffectiveOn.sh
r15602 r15604 3 3 # option 4 4 doupdate="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) 6 6 7 7 … … 27 27 # get last 3, 6 or 9 nights 28 28 dates=( `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"` \ 30 30 # `date +%Y/%m/%d --date="-156hour"` `date +%Y/%m/%d --date="-180hour"` `date +%Y/%m/%d --date="-204hour"` \ 31 31 ) … … 161 161 if [ "${effectiveon[3]}" == "" ] 162 162 then 163 query=$query", fTriggerRateTimeOver100=NULL" 164 else 165 query=$query", fTriggerRateTimeOver100="${effectiveon[3]} 166 fi 167 if [ "${effectiveon[4]}" == "" ] 168 then 163 169 query=$query", fTriggerRateTimeOver125=NULL" 164 170 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]} 166 190 fi 167 191 else … … 169 193 query=$query", fEffectiveOnRms=NULL" 170 194 query=$query", fOnTime=NULL" 195 query=$query", fTriggerRateTimeOver100=NULL" 171 196 query=$query", fTriggerRateTimeOver125=NULL" 197 query=$query", fTriggerRateTimeOver150=NULL" 198 query=$query", fTriggerRateTimeOver175=NULL" 199 query=$query", fTriggerRateRms=NULL" 200 172 201 fi 173 202 … … 175 204 query=$query" WHERE fNight="$runnumber" AND fRunID="$filenum 176 205 177 #echo $query206 echo $query 178 207 #echo "EffectiveOn:${effectiveon[0]} # RMSEffectiveOn:${effectiveon[1]} # SumOnTime:${effectiveon[2]} # TriggerTimeOver125:${effectiveon[3]}" 179 208 #send query to DB
Note:
See TracChangeset
for help on using the changeset viewer.