- Timestamp:
- 06/04/13 16:38:52 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Processing/FillAuxCurrents.sh
r15219 r16690 34 34 echo `date`": processing the following night(s): "${dates[@]} >> $logfile 2>&1 35 35 36 echo ${dates[@]}36 #echo ${dates[@]} 37 37 38 38 cd $mars … … 44 44 runnumber=`echo $date | sed -e 's/\///g'` 45 45 46 #if [ $runnumber -lt 20130301 ]47 #then48 #continue49 #fi46 if [ $runnumber -lt 20130301 ] 47 then 48 continue 49 fi 50 50 51 51 # check if aux files are available from that night … … 97 97 fi 98 98 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 104 111 if ! [ -e $calcurrentsfile ] 105 112 then … … 180 187 then 181 188 #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]*'` ) 183 191 if [ "${currents[0]}" == "" ] 184 192 then … … 229 237 query=$query" WHERE fNight="$runnumber" AND fRunID="$filenum 230 238 231 echo $query239 #echo $query 232 240 # send query to DB 233 241 sendquery >/dev/null
Note:
See TracChangeset
for help on using the changeset viewer.