Changeset 7944 for trunk/MagicSoft/Mars/datacenter/scripts/doqualityplots
- Timestamp:
- 08/25/06 22:09:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/doqualityplots
r7938 r7944 33 33 # 34 34 35 source `dirname $0`/sourcefile 36 printprocesslog "INFO starting $0" 35 37 program=doqualityplots 36 source `dirname $0`/sourcefile37 38 38 39 set -C … … 40 41 cd $mars 41 42 42 datetime=`date +%F-%H-%M-%S` 43 44 scriptlogpath=$runlogpath/$program 45 makedir $scriptlogpath 46 47 scriptlog=$scriptlogpath/doqualityplots-$datetime.log 48 43 scriptlog=$runlogpath/$program-$datetime.log 49 44 date >> $scriptlog 2>&1 50 45 51 46 # check if script is already running 52 lockfile=$lockpath/lock- doqualityplots.txt47 lockfile=$lockpath/lock-$program.txt 53 48 checklock >> $scriptlog 2>&1 54 49 55 50 # producing the plots with the values from the database 56 51 echo "producing plots: " >> $scriptlog 2>&1 52 printprocesslog "INFO producing data quality plots" 57 53 check0=`root -q -b $macrospath/plotdb.C+\(\) | tee -a $scriptlog | grep int | sed -e 's/.*(int)//'` 58 54 59 55 case $check0 in 60 1) echo "check0=$check0 -> everything ok -> move files" >> $scriptlog 2>&1;; 61 *) echo "check0=$check0 -> ERROR -> couldn't create plots -> exit" >> $scriptlog 2>&1 62 rm -v $lockfile >> $scriptlog 2>&1 63 exit;; 56 1) echo " check0=$check0 -> everything ok -> move files" >> $scriptlog 2>&1 57 printprocesslog "INFO plots successfully produced" 58 ;; 59 *) echo " check0=$check0 -> ERROR -> couldn't create plots -> exit" >> $scriptlog 2>&1 60 printprocesslog "ERROR producing plots failed" 61 finish >> $scriptlog 2>&1 62 ;; 64 63 esac 65 64 66 65 # making files available in the web 66 printprocesslog "INFO moving files to web" 67 67 webpath=/www/htdocs/datacenter/datacheck 68 68 name=plotdb … … 84 84 # second part 85 85 # making plots for all datasets 86 printprocesslog "INFO producing plots for datasets" 86 87 datasets=`find $datapath/ganymed -name ganymed*.root | grep -v summary` 87 88 88 89 for dataset in ${datasets[@]} 89 90 do 91 printprocesslog "INFO producing plots for dataset $dataset" 90 92 nr=`echo $dataset | cut -d/ -f6` 91 93 nr2=`echo $nr | cut -c 1-5` … … 97 99 rm -v $plotlog >> $scriptlog 2>&1 98 100 check1=`root -q -b $macrospath/plotdb.C+\("\"$datasetfile\""\) 2>>$plotlog | tee -a $scriptlog | grep int | sed -e 's/.*(int)//'` 99 echo " check1: "$check1 >> $scriptlog 2>&1101 echo " check1: "$check1 >> $scriptlog 2>&1 100 102 newpsfile=$outpath/plotdb$nr.ps 101 103 newrootfile=$outpath/plotdb$nr.root … … 106 108 done 107 109 108 rm -v $lockfile >> $scriptlog 2>&1 110 finish >> $scriptlog 2>&1 109 111 110 set +C111 112 date >> $scriptlog 2>&1113
Note:
See TracChangeset
for help on using the changeset viewer.