Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 2857)
+++ trunk/MagicSoft/Mars/Changelog	(revision 2858)
@@ -4,4 +4,23 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+ 2004/01/20: Thomas Bretz
+
+   * Makefile:
+     - replaced 'make' by '$(MAKE)'
+     
+   * Makefile.rules:
+     - added Makefile itself to dependencies
+     
+   * mbase/MTask.cc:
+     - added comment about ReInit
+
+   * mhbase/MH.cc:
+     - do not clear pad in DrawClone if 'same' option given
+
+   * mhist/MHVsTime.cc:
+     - evaluate 'same' option
+
+
 
  2004/01/20: Abelardo moralejo
@@ -11,5 +30,5 @@
       fHPCharge, fHPTime.
 
-  * manalysis/MCerPhotPix.h 
+  * manalysis/MCerPhotPix.h: 
     - Changed position of declaration of fIsSaturated to be the last 
       private variable. Otherwise, since in the constructor it is 
@@ -18,7 +37,7 @@
 
 
+
  2004/01/20: Markus Gaug
-  * mcalib/Makefile
-  * manalysis/Makefile
+  * mcalib/Makefile, manalysis/Makefile:
     - include directory ../mtools
  
@@ -27,4 +46,5 @@
 
 
+
  2004/01/19: Markus Gaug
 
@@ -58,4 +78,5 @@
     - Modified way to change the fit function
     - incorporate option to exclude pixels from configuration file
+
 
 
Index: trunk/MagicSoft/Mars/Makefile
===================================================================
--- trunk/MagicSoft/Mars/Makefile	(revision 2857)
+++ trunk/MagicSoft/Mars/Makefile	(revision 2858)
@@ -105,13 +105,13 @@
 $(LIBRARIES):
 	@echo " Creating lib$@:"
-	(cd $*; make; cd ..; mv $*/$@ lib/lib$@)
+	(cd $*; $(MAKE); cd ..; mv $*/$@ lib/lib$@)
 
 $(MRPROPERS):
 	@echo " Doing Mr.Proper in $(@:.mrproper=)"
-	(cd $(@:.mrproper=); (make mrproper > /dev/null); cd ..;) 
+	(cd $(@:.mrproper=); ($(MAKE) mrproper > /dev/null); cd ..;) 
 
 $(CLEANERS):
 	@echo "Cleaning $(@:.clean=):"
-	(cd $(@:.clean=); make clean; cd ..;) 
+	(cd $(@:.clean=); $(MAKE) clean; cd ..;) 
 
 dox: $(SOLIB)
Index: trunk/MagicSoft/Mars/Makefile.rules
===================================================================
--- trunk/MagicSoft/Mars/Makefile.rules	(revision 2857)
+++ trunk/MagicSoft/Mars/Makefile.rules	(revision 2858)
@@ -13,7 +13,8 @@
 
 %.d:	
-	@echo " - Generating dependancies" $@
+	@echo " - Generating dependencies" $@
 	$(ROOTSYS)/bin/rmkdepend -f- -Y -w 3000 -- $(INCLUDES) -- $(SRCFILES) 2> /dev/null | \
-        sed 's/^\(.*\).o:/$@ \1.o:/' > $@
+         sed 's/^\(.*\).o:/$@ \1.o:/' > $@
+	echo "$@: Makefile" >> $@
 
 %.o:	%.cxx
Index: trunk/MagicSoft/Mars/mbase/MTask.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MTask.cc	(revision 2857)
+++ trunk/MagicSoft/Mars/mbase/MTask.cc	(revision 2858)
@@ -60,4 +60,17 @@
 //                     return the status 'failed' return kERROR.
 //
+//   - ReInit()        The idea is, that
+//                       a) we have one file per run
+//                       b) each file contains so called run-headers which
+//                          stores information 'per run', eg MRawRunHeader
+//                          or the bad pixels
+//                       c) this information must be evaluated somehow each
+//                          time a new file is opened.
+//
+//                     If you use MReadMarsFile or MCT1ReadPreProc it is
+//                     called each time a new file has been opened and the
+//                     new run headers have been read before the first
+//                     event of these file is preprocessed.
+//
 //   - PostProcess():  executed after the eventloop. Here you can close
 //                     output files, start display of the run parameter,
Index: trunk/MagicSoft/Mars/mhbase/MH.cc
===================================================================
--- trunk/MagicSoft/Mars/mhbase/MH.cc	(revision 2857)
+++ trunk/MagicSoft/Mars/mhbase/MH.cc	(revision 2858)
@@ -838,5 +838,6 @@
         p = MakeDefCanvas(this, w, h);
     else
-        p->Clear();
+        if (!option.Contains("same", TString::kIgnoreCase))
+            p->Clear();
 
     gROOT->SetSelectedPad(NULL);
Index: trunk/MagicSoft/Mars/mhist/MHVsTime.cc
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHVsTime.cc	(revision 2857)
+++ trunk/MagicSoft/Mars/mhist/MHVsTime.cc	(revision 2858)
@@ -212,5 +212,17 @@
     }
     fGraph->GetHistogram()->SetYTitle(GetRule());
-    fGraph->Draw("AP");
+
+    if (!str.Contains("A"))
+        str += "A";
+    if (!str.Contains("P"))
+        str += "P";
+
+    if (str.Contains("same", TString::kIgnoreCase))
+    {
+        str.ReplaceAll("same", "");
+        str.ReplaceAll("A", "");
+    }
+
+    fGraph->Draw(str);
     if (fGraph->TestBit(kIsLogy))
         pad->SetLogy();
