Changeset 18321 for trunk/DataCheck/Processing/FillAuxData.sh
- Timestamp:
- 08/31/15 01:31:37 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Processing/FillAuxData.sh
r18135 r18321 2 2 3 3 # new version of the script to run on newdaq 4 # but can be also used at ISDC 4 5 5 6 # option whether to fill all row or only those where information is missing … … 28 29 if [ "$certaindate" != "" ] 29 30 then 30 checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`31 if [ "$checkstring" = "" ]32 then33 echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"34 finish35 fi36 31 getdates $certaindate 37 32 else … … 80 75 then 81 76 printprocesslog "WARN empty evaluation of statistic ("$@") for run "$date" "$file 82 #echo " ---> "$@ 83 fi 84 #echo "ev: "$evaluation 77 fi 85 78 min=`echo $evaluation | grep -E -o 'Min:\ [-]?[0-9]+[.]?[0-9]*' | sed -e 's/Min:\ //'` 86 79 max=`echo $evaluation | grep -E -o 'Max:\ [-]?[0-9]+[.]?[0-9]*' | sed -e 's/Max:\ //'` … … 88 81 mean=`echo $evaluation | grep -E -o 'Avg:\ [-]?[0-9]+[.]?[0-9]*' | sed -e 's/Avg:\ //'` 89 82 rms=`echo $evaluation | grep -E -o 'Rms:\ [-]?[0-9]+[.]?[0-9]*[e]?[-]?[0-9]+' | sed -e 's/Rms:\ //'` 90 #echo "eval: "$min" "$max" "$med" "$mean" "$rms91 83 } 92 84 … … 105 97 else 106 98 printprocesslog "INFO processing files in "$auxdir 107 #echo "INFO processing files in "$auxdir108 99 fi 109 100 … … 179 170 printprocesslog "INFO processing file number "$runnumber"_"`printf %03d $filenum` 180 171 echo `date`": processing file number "$runnumber"_"`printf %03d $filenum` >> $logfile 2>&1 181 echo `date`": processing file number "$runnumber"_"`printf %03d $filenum`172 #echo `date`": processing file number "$runnumber"_"`printf %03d $filenum` 182 173 183 174 # get information from rawfile … … 200 191 continue 201 192 fi 202 echo $runtype203 193 # assuming that at least TSTARTI and TSTOPI are consistent 204 #echo $rawfile205 #echo $tstarti206 #echo $tstopi207 #echo $tstartf208 #echo $tstopf209 194 if [ $tstarti -gt 30000 ] 210 195 then … … 219 204 tstop=`echo " $tstopi + $tstopf " | bc -l` 220 205 fi 221 #echo $tstart 222 #echo $tstop 206 # code for very old data 223 207 #if [ $runnumber -eq 20111123 ] 224 208 #then … … 317 301 fi 318 302 fi 319 echo $runstart $runstop320 303 #numevents=`$factpath/fitsdump -h -t Events $rawfile 2>/dev/null | grep Events | grep -E -o '[0-9]+'` 321 304 numevents=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep Events | grep -E -o '[0-9]+'` … … 420 403 # RA 421 404 evaluatestatistics "Ra" $trackingstats 422 #echo $min"_"$max"_"$423 405 if [ "$evaluation" != "" ] 424 406 then … … 623 605 # add where condition 624 606 query=$query" WHERE fNight="$runnumber" AND fRunID="$filenum 625 echo $query626 607 627 608 # send query to DB
Note:
See TracChangeset
for help on using the changeset viewer.