Changeset 16690


Ignore:
Timestamp:
06/04/13 16:38:52 (12 years ago)
Author:
Daniela Dorner
Message:
updated path for macro, implemented check whether calibrated-currentsfile exists
File:
1 edited

Legend:

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

    r15219 r16690  
    3434echo  `date`": processing the following night(s): "${dates[@]} >> $logfile 2>&1
    3535
    36 echo ${dates[@]}
     36#echo ${dates[@]}
    3737
    3838cd $mars
     
    4444   runnumber=`echo $date | sed -e 's/\///g'`
    4545   
    46 #   if [ $runnumber -lt 20130301 ]
    47 #   then
    48 #      continue
    49 #   fi
     46   if [ $runnumber -lt 20130301 ]
     47   then
     48      continue
     49   fi
    5050
    5151   # check if aux files are available from that night
     
    9797   fi
    9898
    99    echo "run calibrate.C for night "$runnumber
    100    root -q -b -l fact/calibrate.C\($runnumber\)
    101 
    102    calcurrentsfile=$auxdir/$runnumber.CALIBRATED_CURRENTS.fits
    103    calcurrentsfile=/scratch_nfs/calibrated_currents/$runnumber.CALIBRATED_CURRENTS.fits
     99   calcurrentsfile=$auxdir/$runnumber.FEEDBACK_CALIBRATED_CURRENTS.fits
     100   if ! [ -e $calcurrentsfile ]
     101   then
     102      printprocesslog "INFO run calibrate.C for night "$runnumber
     103      echo "INFO run calibrate.C for night "$runnumber >> $logfile 2>&1
     104      root -q -b -l fact/calibrate.C\($runnumber\)
     105      calcurrentsfile=/gpfs/scratch/fact/calibrated_currents/$runnumber.CALIBRATED_CURRENTS.fits
     106   fi
     107
     108   #calcurrentsfile=$auxdir/$runnumber.FEEDBACK_CALIBRATED_CURRENTS.fits
     109   #calcurrentsfile=/scratch_nfs/calibrated_currents/$runnumber.CALIBRATED_CURRENTS.fits
     110   #calcurrentsfile=/gpfs/scratch/fact/calibrated_currents/$runnumber.CALIBRATED_CURRENTS.fits
    104111   if ! [ -e $calcurrentsfile ]
    105112   then
     
    180187      then
    181188         #root -q -b -l fact/curavg.C\("\"$calcurrentsfile\""\,$tstart\,$tstop\) # | grep "result" | grep -E -o '[0-9]+[.]?[0-9]*'
    182          currents=( `root -q -b -l fact/curavg.C\("\"$calcurrentsfile\""\,$tstart\,$tstop\) | grep "result" | grep -E -o '[0-9]+[.]?[0-9]*'` )
     189         #currents=( `root -q -b -l fact/curavg.C\("\"$calcurrentsfile\""\,$tstart\,$tstop\) | grep "result" | grep -E -o '[0-9]+[.]?[0-9]*'` )
     190         currents=( `root -q -b -l fact/processing/currents.C\("\"$calcurrentsfile\""\,$tstart\,$tstop\) | grep "result" | grep -E -o '[0-9]+[.]?[0-9]*'` )
    183191         if [ "${currents[0]}" == "" ]
    184192         then
     
    229237      query=$query" WHERE fNight="$runnumber" AND fRunID="$filenum
    230238     
    231       echo $query
     239      #echo $query
    232240      # send query to DB
    233241      sendquery >/dev/null
Note: See TracChangeset for help on using the changeset viewer.