Changeset 17591 for trunk/DataCheck/QuickLook/Step3.sh
- Timestamp:
- 03/02/14 00:36:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/QuickLook/Step3.sh
r17110 r17591 57 57 continue 58 58 fi 59 #echo "date: "$date60 59 query="SELECT fSourceKEY FROM RunInfo WHERE fNight="$date2" AND fSourceKey > 0 AND fRunTypeKEY=1 GROUP BY fSourceKey " 61 60 sources=( `sendquery` ) … … 115 114 esac 116 115 116 # doing the plots for last month 117 lastmonth=`date +%Y%m%d --date="$date -28 day"` 118 logfile=$outpath"/lightcurve"$source"_"$timebin$timename"_month.log" 119 outfile=$outpath"/lightcurve"$source"_"$timebin$timename"_month.root" 120 #echo $outfile 121 printprocesslog "INFO starting lightcurve.C+ for source "$source" timebin "$timebin" "$timename" night "$date2" last month ("$lastmonth")" 122 123 check1=`root -q -b fact/analysis/lightcurve.C+\($source\,$lastmonth\\,$date2\,$timebin\,"\"$tablename"\"\,"\"$outfile\""\,kFALSE\) | tee $logfile | intgrep` 124 125 case $check1 in 126 0) printprocesslog "INFO lightcurve.C was successful for source "$source" timebin "$timebin" "$timename" night "$date2" last month (check1=$check1)" 127 #./showplot -b --save-as-png $outfile 128 if ! ./showplot -b --save-as-png $outfile >/dev/null 129 then 130 printprocesslog "WARN showplot -b --save-as-png "$outfile" failed." 131 fi 132 ;; 133 1) printprocesslog "INFO lightcurve.C was successful for source "$source" timebin "$timebin" "$timename" night "$date2" last month, but nothing to plot (check1=$check1)" 134 ;; 135 *) printprocesslog "ERROR lightcurve.C failed for source "$source" timebin "$timebin" "$timename" night "$date2" last month (check1=$check1)" 136 ;; 137 esac 138 117 139 # doing the plots for all nights 118 140 logfile=$outpath"/lightcurve"$source"_"$timebin$timename"_all.log" … … 183 205 ;; 184 206 *) printprocesslog "ERROR lightcurve.C failed for source "$source" timebin 1 night for night "$date2" last week (check1=$check1)" 207 ;; 208 esac 209 210 # doing the plots for last month 211 lastmonth=`date +%Y%m%d --date="$date -28 day"` 212 logfile=$outpath"/lightcurve"$source"_1night_month.log" 213 outfile=$outpath"/lightcurve"$source"_1night_month.root" 214 #echo $outfile 215 printprocesslog "INFO starting lightcurve.C+ for source "$source" timebin 1 night for night "$date2" last month ("$lastmonth")" 216 217 check1=`root -q -b fact/analysis/lightcurve.C+\($source\,$lastmonth\\,$date2\,-1\,"\"$tablename"\"\,"\"$outfile\""\,kFALSE\) | tee $logfile | intgrep` 218 219 case $check1 in 220 0) printprocesslog "INFO lightcurve.C was successful for source "$source" timebin 1 night for night "$date2" last month (check1=$check1)" 221 #./showplot -b --save-as-png $outfile 222 if ! ./showplot -b --save-as-png $outfile >/dev/null 223 then 224 printprocesslog "WARN showplot -b --save-as-png "$outfile" failed." 225 fi 226 ;; 227 1) printprocesslog "INFO lightcurve.C was successful for source "$source" timebin 1 night for night "$date2" last month, but nothing to plot (check1=$check1)" 228 ;; 229 *) printprocesslog "ERROR lightcurve.C failed for source "$source" timebin 1 night for night "$date2" last month (check1=$check1)" 185 230 ;; 186 231 esac
Note:
See TracChangeset
for help on using the changeset viewer.