Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 3816)
+++ trunk/MagicSoft/Mars/Changelog	(revision 3817)
@@ -18,4 +18,16 @@
 
                                                  -*-*- END OF LINE -*-*-
+ 2004/04/23: Thomas Bretz
+
+  * */Makefile:
+    - added some more mpedestal
+
+  * mreport/MReportRun.cc:
+    - changed to work with the latest version of report-files
+      --> This will make it incompatible with older report files
+          (for this use older Mars versions for merpping)
+
+
+
  2004/04/22: Nadia Tonello
 
Index: trunk/MagicSoft/Mars/mfileio/Makefile
===================================================================
--- trunk/MagicSoft/Mars/mfileio/Makefile	(revision 3816)
+++ trunk/MagicSoft/Mars/mfileio/Makefile	(revision 3817)
@@ -21,5 +21,6 @@
 
 INCLUDES = -I. -I../mbase -I../mraw -I../mmc -I../mreflector -I../mgui \
-	   -I../mdata -I../manalysis -I../mgeom -I../mhbase -I../mpointing
+	   -I../mdata -I../manalysis -I../mgeom -I../mhbase            \
+           -I../mpointing -I../mpedestal
 #mraw:       MRawRunHeader (MReadMaraFile)
 #mmc:        MMcRunHeader  (MReadMarsFile)
@@ -31,4 +32,5 @@
 #mhbase:     MBinning      (MCT1ReadPreProc)
 #mpointing:  MPointingPos  (MCT1ReadPreProc)
+#mpedestal:  MPedestalCam  (MCT1ReadAscii)
 
 # @code 
@@ -42,4 +44,5 @@
 
 SRCFILES = MRead.cc \
+	   MReadFiles.cc \
            MChain.cc \
 	   MReadTree.cc \
@@ -51,5 +54,6 @@
            MWriteRootFile.cc \
            MCT1ReadAscii.cc \
-           MCT1ReadPreProc.cc
+           MCT1ReadPreProc.cc \
+           MCheckMagicFile.cc
 
 SRCS    = $(SRCFILES)
Index: trunk/MagicSoft/Mars/mreport/MReportRun.cc
===================================================================
--- trunk/MagicSoft/Mars/mreport/MReportRun.cc	(revision 3816)
+++ trunk/MagicSoft/Mars/mreport/MReportRun.cc	(revision 3817)
@@ -59,6 +59,17 @@
 Int_t MReportRun::InterpreteBody(TString &str)
 {
-    Int_t len;
-    const Int_t n=sscanf(str.Data(), "%d %n", &fRunNumber, &len);
+    const Int_t pos = str.First(' ');
+    if (pos<0)
+    {
+        *fLog << warn << "WARNING - Token not found." << endl;
+        return kCONTINUE;
+    }
+    const TString tok=str(0, pos);
+
+    str.Remove(0, pos);
+    str = str.Strip(TString::kBoth);
+
+    Int_t len, run;
+    const Int_t n=sscanf(str.Data(), "%d %n", &run, &len);
     if (n!=1)
     {
@@ -68,9 +79,17 @@
     str.Remove(0, len);
 
-    if (str.BeginsWith("END"))
+    if (tok=="START")
+    {
+        if (fRunNumber!=-1)
+            *fLog << warn << "WARNING - RUN-REPORT STOP missing." << endl;
+        fRunNumber = run;
+    }
+    if (tok=="STOP")
+    {
+        if (fRunNumber==-1)
+            *fLog << warn << "WARNING - RUN-REPORT START missing." << endl;
         fRunNumber = -1;
+    }
 
-    str.Remove(0, 6);
-    str = str.Strip(TString::kBoth);
     Ssiz_t pos = str.First(' ');
     if (pos<0)
