Changeset 14880 for trunk


Ignore:
Timestamp:
02/07/13 08:05:28 (12 years ago)
Author:
Daniela Dorner
Message:
added new values
File:
1 edited

Legend:

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

    r14833 r14880  
    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
    77source `dirname $0`/../Sourcefile.sh
     
    2323
    2424# get last 3, 6 or 9 nights
    25 dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` `date +%Y/%m/%d --date="-60hour"` \
     25#dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` `date +%Y/%m/%d --date="-60hour"` \
    2626#        `date +%Y/%m/%d --date="-84hour"` `date +%Y/%m/%d --date="-108hour"` `date +%Y/%m/%d --date="-132hour"` \
    27 #        `date +%Y/%m/%d --date="-156hour"` `date +%Y/%m/%d --date="-180hour"` `date +%Y/%m/%d --date="-204hour"` \
    28         )
     27##        `date +%Y/%m/%d --date="-156hour"` `date +%Y/%m/%d --date="-180hour"` `date +%Y/%m/%d --date="-204hour"` \
     28#        )
    2929dates=( `find -L $ziprawdata -mindepth 3 -type d | sort -r | sed "s/\${ziprawdata_for_sed}//g" | sed -e 's/^\///'` ) #all available dates in /loc_data/zipraw
     30
     31#dates=( "2013/01/31" )
     32
    3033printprocesslog "INFO processing the following night(s): "${dates[@]}
    3134echo  `date`": processing the following night(s): "${dates[@]} >> $logfile 2>&1
     
    4043   auxdir=$auxdata/$date
    4144   runnumber=`echo $date | sed -e 's/\///g'`
    42    #if [ $runnumber -lt 20120301 ]
    43    #then
    44    #   continue
    45    #fi
    46    #if [ $runnumber -gt 20120714 ]
    47    #then
    48    #   continue
    49    #fi
    5045
    5146   # check if aux files are available from that night
     
    179174      if [ -e $calcurrentsfile ] && [ $calnumerrors -eq 0 ]
    180175      then
     176         #root -q -b -l fact/curavg.C\("\"$calcurrentsfile\""\,$tstart\,$tstop\) # | grep "result" | grep -E -o '[0-9]+[.]?[0-9]*'
    181177         currents=( `root -q -b -l fact/curavg.C\("\"$calcurrentsfile\""\,$tstart\,$tstop\) | grep "result" | grep -E -o '[0-9]+[.]?[0-9]*'` )
    182178         if [ "${currents[0]}" == "" ]
    183179         then
    184             query=$query"fCurrentsMean=NULL"
    185          else
    186             query=$query"fCurrentsMean="${currents[0]}
     180            query=$query"fCurrentsMedMean=NULL"
     181         else
     182            query=$query"fCurrentsMedMean="${currents[0]}
    187183         fi
    188184         if [ "${currents[1]}" == "" ]
    189185         then
    190             query=$query", fCurrentsRms=NULL"
    191          else
    192             query=$query", fCurrentsRms="${currents[1]}
     186            query=$query", fCurrentsMedRms=NULL"
     187         else
     188            query=$query", fCurrentsMedRms="${currents[1]}
     189         fi
     190         if [ "${currents[2]}" == "" ]
     191         then
     192            query=$query", fCurrentsDevMean=NULL"
     193         else
     194            query=$query", fCurrentsDevMean="${currents[2]}
     195         fi
     196         if [ "${currents[3]}" == "" ]
     197         then
     198            query=$query", fCurrentsDevRms=NULL"
     199         else
     200            query=$query", fCurrentsDevRms="${currents[3]}
    193201         fi
    194202      else
    195          query=$query" fCurrentsMean=NULL"
    196          query=$query", fCurrentsRms=NULL"
     203         query=$query" fCurrentsMedMean=NULL"
     204         query=$query", fCurrentsMedRms=NULL"
     205         query=$query", fCurrentsDevMean=NULL"
     206         query=$query", fCurrentsDevRms=NULL"
    197207      fi
    198208     
Note: See TracChangeset for help on using the changeset viewer.