Index: trunk/MagicSoft/Mars/datacenter/scripts/linkmc
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/linkmc	(revision 7453)
+++ trunk/MagicSoft/Mars/datacenter/scripts/linkmc	(revision 7460)
@@ -20,9 +20,24 @@
 #   Author(s): Daniela Dorner  12/2005 <mailto:dorner@astro.uni-wuerzburg.de>
 #
-#   Copyright: MAGIC Software Development, 2000-2004
+#   Copyright: MAGIC Software Development, 2000-2006
 #
 #
 # ========================================================================
 #
+# This script is linking the montecarlo files from the original structure
+# to a structure from which the files can be processed more easily with the
+# automatic analysis. 
+# This script is not yet running automatically. 
+#
+# original structure:
+# /montecarlo/camera/
+#
+# new structure: 
+# /montecarlo/rawfiles/YYYY/MM/DD/file.root
+# more explanation concerning the file structure can be found in the file
+# /montecarlo/rawfiles/README.txt
+#
+# First the data files are linked and then in each new directory also the 
+# pedestal and calibration file is linked. 
 #
 
@@ -38,4 +53,5 @@
 date >> $scriptlog 2>&1
 
+# check if script is already running
 lockfile=$lockpath/lock-mclinks.txt
 date > $lockfile >> $scriptlog 2>&1 
@@ -50,5 +66,4 @@
 esac
 
-
 mccampath=/montecarlo/camera
 mcpath=/montecarlo/rawfiles
@@ -57,4 +72,5 @@
 readme=$mcpath/README.txt #file in which the information about the modes is redirected to have always an updated explanation
 
+# check if file with next runnumber is available
 if ! ls $next >> $scriptlog 2>&1
 then
@@ -64,12 +80,12 @@
 fi
 
-date >| $readme 2>&1
-
-
+
+# observation modes 
 modes=("" "Gammawobble+" "Gammanowobble0" "GammawobbleHE+" "GammanowobbleHE0" "Gammawobble0" "GammawobbleHE0" "Gammadiffuse0" "Protonnowobble0" )
-
 #be carful: 
 # w- not yet foreseen in this script
 
+# print information and explanation of structure into README.txt 
+date >| $readme 2>&1
 echo "" >> $readme 2>&1
 echo "Explanation for the structure in which the mc files are linked" >> $readme 2>&1
@@ -218,5 +234,4 @@
 done
 
-
 rm -v $lockfile >> $scriptlog 2>&1
 
@@ -225,3 +240,2 @@
 date  >> $scriptlog 2>&1
 
-
