Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 1354)
+++ trunk/MagicSoft/Mars/Changelog	(revision 1355)
@@ -1,4 +1,10 @@
                                                                   -*-*- END -*-*-
  2002/06/10: Thomas Bretz
+
+   * mbase/MReadMarsFile.cc:
+     - changed name of fRun to ReadRunHeaders
+
+   * mbase/MReadTree.cc:
+     - changed output to show name of class
 
    * macros/plot.C:
Index: trunk/MagicSoft/Mars/mbase/MReadMarsFile.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MReadMarsFile.cc	(revision 1354)
+++ trunk/MagicSoft/Mars/mbase/MReadMarsFile.cc	(revision 1355)
@@ -63,5 +63,5 @@
     // open the input stream
     //
-    fRun = new MReadTree("RunHeaders", fname);
+    fRun = new MReadTree("RunHeaders", fname, "ReadRunHeaders");
 
     //
Index: trunk/MagicSoft/Mars/mbase/MReadTree.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MReadTree.cc	(revision 1354)
+++ trunk/MagicSoft/Mars/mbase/MReadTree.cc	(revision 1355)
@@ -193,6 +193,6 @@
 Bool_t MReadTree::Notify()
 {
-    *fLog << inf << "MReadTree: Notify '" << fChain->GetName() << "' ";
-    *fLog << "(before processing event #" << GetEventNum()-1 << ")" << endl;
+    *fLog << inf << GetDescriptor() << ": Notify '" << fChain->GetName();
+    *fLog << "' (before processing event #" << GetEventNum()-1 << ")" << endl;
 
     //fNotify->Notify();
@@ -237,5 +237,5 @@
         return;
 
-    *fLog << inf << "Branch choosing method enabled (only enabled branches are read)." << endl;
+    *fLog << inf << GetDescriptor() << ": Branch choosing method enabled (only enabled branches are read)." << endl;
     fChain->SetBranchStatus("*", kFALSE);
     fBranchChoosing = kTRUE;
@@ -341,5 +341,5 @@
     if (!tlist)
     {
-        *fLog << warn << "Cannot use auto enabeling scheme for branches. 'MTaskList' not found." << endl;
+        *fLog << warn << GetDescriptor() << "Cannot use auto enabeling scheme for branches. 'MTaskList' not found." << endl;
         return;
     }
@@ -537,5 +537,5 @@
     }
 
-    *fLog << inf << "MReadTree setup " << num << " master branches addresses." << endl;
+    *fLog << inf << GetDescriptor() << " setup " << num << " master branches addresses." << endl;
 
     //
@@ -674,5 +674,5 @@
     if (fNumEntry-dec >= fNumEntries)
     {
-        *fLog << warn << "MReadTree::DecEventNum: WARNING - Event " << fNumEntry << "-";
+        *fLog << warn << GetDescriptor() << ": DecEventNum, WARNING - Event " << fNumEntry << "-";
         *fLog << dec << "=" << (Int_t)fNumEntry-dec << " out of Range." << endl;
         return kFALSE;
@@ -692,5 +692,5 @@
     if (fNumEntry+inc >= fNumEntries)
     {
-        *fLog << warn << "MReadTree::IncEventNum: WARNING - Event " << fNumEntry << "+";
+        *fLog << warn << GetDescriptor() << ": IncEventNum, WARNING - Event " << fNumEntry << "+";
         *fLog << inc << "=" << (Int_t)fNumEntry+inc << " out of Range." << endl;
         return kFALSE;
@@ -712,5 +712,5 @@
     if (nr >= fNumEntries)
     {
-        *fLog << warn << "MReadTree::SetEventNum: WARNING - " << nr << " out of Range." << endl;
+        *fLog << warn << GetDescriptor() << ": SetEventNum, WARNING - " << nr << " out of Range." << endl;
         return kFALSE;
     }
Index: trunk/MagicSoft/Mars/mhist/MHMatrix.cc
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHMatrix.cc	(revision 1354)
+++ trunk/MagicSoft/Mars/mhist/MHMatrix.cc	(revision 1355)
@@ -192,4 +192,10 @@
 Bool_t MHMatrix::Finalize()
 {
+    //
+    // It's not a fatal error so we don't need to stop PostProcessing...
+    //
+    if (fData->GetSize()<1 || fNumRow<1)
+        return kTRUE;
+
     TMatrix m(fM);
 
@@ -302,14 +308,14 @@
     const Int_t cols = m.GetNcols();
 
-    for (int i=0; i<cols; i++)
+    for (int x=0; x<cols; x++)
     {
         Double_t avg = 0;
-        for (int j=0; j<rows; j++)
-            avg += fM(j, i);
+        for (int y=0; y<rows; y++)
+            avg += fM(y, x);
 
         avg /= rows;
 
-        for (int j=0; j<rows; j++)
-            m(j, i) -= avg;
+        for (int y=0; y<rows; y++)
+            m(y, x) -= avg;
     }
 
Index: trunk/MagicSoft/Mars/mhist/MHMatrix.h
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHMatrix.h	(revision 1354)
+++ trunk/MagicSoft/Mars/mhist/MHMatrix.h	(revision 1355)
@@ -39,6 +39,4 @@
     const TList *GetRules() const { return fRules; }
 
-    void SetEnergy(MHMatrix *m) { fEnergy = m; }
-
     //void Draw(Option_t *opt=NULL);
     //TObject *DrawClone(Option_t *opt=NULL) const;
