Index: trunk/MagicSoft/Mars/scripts/makemovie
===================================================================
--- trunk/MagicSoft/Mars/scripts/makemovie	(revision 8473)
+++ trunk/MagicSoft/Mars/scripts/makemovie	(revision 8482)
@@ -25,8 +25,17 @@
 # ========================================================================
 #
-#
-#
 ##############################################################################
 #
+# This script runs callisto with the -movie option and the corresponding 
+# rc files for a given sequence. 
+# The following movies are produced:
+# - movieSequenceNumber[mc]-withoutcut.mpg (all events)
+# - movieSequenceNumber[mc]-qualcut.mpg    (events after quality cuts)
+# - movieSequenceNumber[mc]-areacut.mpg    (events after area cut)
+# - movieSequenceNumber[mc]-thetacut.mpg   (events after theta^2 cut)
+# 
+# If no outpath is given, the movies are stored in the directory movies.
+# 
+# The script has to be executed in the Mars directory. 
 # 
 ##############################################################################
@@ -43,9 +52,4 @@
 NumEvents=500
 Threshold=3
-
-#MFEvtNumber.FileName: ganymed00001218.root
-#MFEvtNumber.Selector: ThetaSquared.fVal<0.04 && DataType.fVal>0.5
-#MMovieWrite.Filename: movie-00071431-off-all.mpg
-
 
 function usage()
@@ -83,26 +87,26 @@
 do 
    case $1 in 
-           --sequ)  shift
-                    sequence=$1
-                    ;;
-            --out)  shift
-                    outpath=$1
-                    ;;
-  --target-length)  shift
-                    TargetLength=$1
-                    ;;
-     --num-events)  shift
-                    NumEvents=$1
-                    ;;
-          -wobble)  wobble='yes'
-                    ;;
-              -mc)  mc='mc'
-                    ;;
-               -h)  usage
-                    ;;
-      *)      echo "unknown option $1 "
-              usage
-              exit
-              ;;
+               --sequ)  shift
+                        sequence=$1
+                        ;;
+                --out)  shift
+                        outpath=$1
+                        ;;
+      --target-length)  shift
+                        TargetLength=$1
+                        ;;
+         --num-events)  shift
+                        NumEvents=$1
+                        ;;
+              -wobble)  wobble='yes'
+                        ;;
+                  -mc)  mc='mc'
+                        ;;
+                   -h)  usage
+                        ;;
+                *)      echo "unknown option $1 "
+                        usage
+                        exit
+                        ;;
    esac
    shift
@@ -239,7 +243,7 @@
 for (( i=1 ; i < 4 ; i++ )) 
 do
-  command="./callisto $opts --config=$outpath2/callisto_$n8$mc-${names[$i]}.rc "
-  echo "submitting: "$command 
-  condor_run $command &
+   command="./callisto $opts --config=$outpath2/callisto_$n8$mc-${names[$i]}.rc "
+   echo "submitting: "$command 
+   condor_run $command &
 done
 
