- Timestamp:
- 02/07/13 08:05:28 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Processing/FillAuxCurrents.sh
r14833 r14880 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 source `dirname $0`/../Sourcefile.sh … … 23 23 24 24 # 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"` \ 26 26 # `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 # ) 29 29 dates=( `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 30 33 printprocesslog "INFO processing the following night(s): "${dates[@]} 31 34 echo `date`": processing the following night(s): "${dates[@]} >> $logfile 2>&1 … … 40 43 auxdir=$auxdata/$date 41 44 runnumber=`echo $date | sed -e 's/\///g'` 42 #if [ $runnumber -lt 20120301 ]43 #then44 # continue45 #fi46 #if [ $runnumber -gt 20120714 ]47 #then48 # continue49 #fi50 45 51 46 # check if aux files are available from that night … … 179 174 if [ -e $calcurrentsfile ] && [ $calnumerrors -eq 0 ] 180 175 then 176 #root -q -b -l fact/curavg.C\("\"$calcurrentsfile\""\,$tstart\,$tstop\) # | grep "result" | grep -E -o '[0-9]+[.]?[0-9]*' 181 177 currents=( `root -q -b -l fact/curavg.C\("\"$calcurrentsfile\""\,$tstart\,$tstop\) | grep "result" | grep -E -o '[0-9]+[.]?[0-9]*'` ) 182 178 if [ "${currents[0]}" == "" ] 183 179 then 184 query=$query"fCurrentsMe an=NULL"185 else 186 query=$query"fCurrentsMe an="${currents[0]}180 query=$query"fCurrentsMedMean=NULL" 181 else 182 query=$query"fCurrentsMedMean="${currents[0]} 187 183 fi 188 184 if [ "${currents[1]}" == "" ] 189 185 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]} 193 201 fi 194 202 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" 197 207 fi 198 208
Note:
See TracChangeset
for help on using the changeset viewer.