Index: trunk/MagicSoft/Mars/datacenter/scripts/doqualityplots
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/doqualityplots	(revision 7407)
+++ trunk/MagicSoft/Mars/datacenter/scripts/doqualityplots	(revision 7460)
@@ -20,9 +20,15 @@
 #   Author(s): Daniela Dorner  08/2005 <mailto:dorner@astro.uni-wuerzburg.de>
 #
-#   Copyright: MAGIC Software Development, 2000-2004
+#   Copyright: MAGIC Software Development, 2000-2006
 #
 #
 # ========================================================================
 #
+# This script produces the qualityplots in the web by executing the macro 
+# plotdb.C 
+# 
+# After checking, if the script is already running, the plots are produced 
+# (ps and root file). Then they are moved to the webdirectory and there png 
+# files are produced from the ps file. 
 #
 
@@ -43,4 +49,5 @@
 date >> $scriptlog 2>&1
 
+# check if script is already running
 lockfile=$lockpath/lock-doqualityplots.txt
 date > $lockfile >> $scriptlog 2>&1 
@@ -55,5 +62,5 @@
 esac
 
-
+# producing the plots with the values from the database 
 echo "producing plots: " >> $scriptlog 2>&1
 check0=`root -q -b $macrospath/plotdb.C+\(\) | tee -a $scriptlog | grep int | sed -e 's/.*(int)//'`
@@ -66,5 +73,5 @@
 esac
 
-
+# making files available in the web
 webpath=/www/htdocs/datacenter/datacheck
 name=plotdb
@@ -74,5 +81,5 @@
 mv -v $name.{root,ps} $webpath  >> $scriptlog 2>&1
 
-echo "moving files: " >> $scriptlog 2>&1
+echo "producing png files: " >> $scriptlog 2>&1
 pstoimg -antialias -flip r270 -density 100 -type png -multipage $psfile >> $scriptlog 2>&1
 
