Changeset 17901 for trunk/DataCheck/QuickLook
- Timestamp:
- 05/27/14 22:09:18 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/QuickLook/RunStar.sh
r17154 r17901 5 5 printprocesslog "INFO starting $0" 6 6 7 seqfile=$1 8 seqnum=`basename $seqfile | sed -e 's/[.]seq//g'` 9 #inpath=`dirname $seqfile | sed -e "s/sequences/${1}\/callisto/"` 10 inpath=`dirname $seqfile | sed -e "s/sequences/callisto/"` 11 #outpath=`dirname $seqfile | sed -e "s/sequences/${1}\/star/"` 12 outpath=`dirname $seqfile | sed -e "s/sequences/star/"` 13 makedir $outpath 14 logfile=$outpath"/"$seqnum"-images.log" 7 logfile=$1 15 8 16 9 cd $mars 17 10 18 11 # run star 19 printprocesslog "INFO starting star .C for sequence "$seqnum12 printprocesslog "INFO starting star_file.C for file "$2 20 13 21 check1=`root -q -b fact/analysis/star.C\("\"$seqfile\""\,4.0\,2.5\,"\"$inpath\""\,"\"$outpath\""\) | tee $logfile | intgrep` 14 echo "root -q -b fact/analysis/star_file.C\("\"$2\""\,5.2\,3.3\,"\"$3\""\) | tee $logfile | intgrep" 15 check1=`root -q -b fact/analysis/star_file.C\("\"$2\""\,5.2\,3.3\,"\"$3\""\) | tee $logfile | intgrep` 22 16 23 17 case $check1 in 24 0) printprocesslog "INFO star was successful for sequence "$seqnum" (check1=$check1)"18 0) printprocesslog "INFO star was successful for file "$2" (check1=$check1)" 25 19 # run merpp 26 printprocesslog "INFO starting merpp.C for sequence "$seqnum27 logfile= $outpath"/"$seqnum"-merpp.log"20 printprocesslog "INFO starting merpp.C for file "$4 21 logfile=`echo $logfile | sed -e 's/images/merpp/g'` 28 22 29 check1=`root -q -b fact/analysis/merpp.C\("\"$seqfile\""\,"\"$outpath\""\) | tee $logfile | intgrep` 23 echo "root -q -b fact/analysis/merpp_file.C\("\"$4\""\) | tee $logfile | intgrep" 24 check2=`root -q -b fact/analysis/merpp_file.C\("\"$4\""\) | tee $logfile | intgrep` 30 25 31 case $check 1in32 0) printprocesslog "INFO merpp was successful for sequence "$seqnum" (check1=$check1)"26 case $check2 in 27 0) printprocesslog "INFO merpp was successful for file "$4" (check2=$check2)" 33 28 ;; 34 *) printprocesslog "ERROR merpp 3.C failed for sequence "$seqnum" (check1=$check1)"29 *) printprocesslog "ERROR merpp_file.C failed for file "$4" -> check log "$logfile" (check2=$check2)" 35 30 # delete image file in this case to be sure that ganymed doesn't try to process it 36 imgfile=$outpath"/"$seqnum"_I.root" 37 if ls $imgfile >/dev/null 2>&1 31 if ls $4 >/dev/null 2>&1 38 32 then 39 rm -v $ imagefile33 rm -v $4 40 34 fi 41 35 ;; 42 36 esac 43 37 ;; 44 *) printprocesslog "ERROR star.C failed for sequence "$seqnum" (check1=$check1)" 38 *) printprocesslog "ERROR star_file.C failed for file "$2" -> check log "$1" (check1=$check1)" 39 if ls $4 >/dev/null 2>&1 40 then 41 rm -v $4 42 fi 45 43 ;; 46 44 esac
Note:
See TracChangeset
for help on using the changeset viewer.