Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 6796)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 6797)
@@ -21,4 +21,14 @@
 
                                                  -*-*- END OF LINE -*-*-
+ 2005/03/09 Thomas Hengstebeck
+
+   * mranforest/MRFEnergyEst.cc
+     - changed call of min, max functions to TMath::Min() and 
+       TMath::Max() to avoid compilation problems with some gcc
+       versions
+     - changed check of energy rule (last col of MHMatrix) so, that 
+       any rule containing "fEnergy" is accepted.
+
+
  2005/03/08 Markus Gaug
 
Index: /trunk/MagicSoft/Mars/mranforest/MRFEnergyEst.cc
===================================================================
--- /trunk/MagicSoft/Mars/mranforest/MRFEnergyEst.cc	(revision 6796)
+++ /trunk/MagicSoft/Mars/mranforest/MRFEnergyEst.cc	(revision 6797)
@@ -61,4 +61,5 @@
 #include "TStyle.h"
 #include "TCanvas.h"
+#include "TMath.h"
 #include "TVector.h"
 
@@ -134,5 +135,5 @@
     }
 
-    if(energy_rule.CompareTo("MMcEvt.fEnergy"))
+    if(!energy_rule.Contains("fEnergy"))
     {
         *fLog << err << dbginf << "Can not accept "<<energy_rule<<" as true energy ... aborting." << endl;
@@ -275,6 +276,6 @@
     for(Int_t j=0;j<nbins;j++)
     {
-        e_low = min(atof((fEForests[j])->GetTitle()),e_low);
-        e_up  = max(atof((fEForests[j])->GetTitle()),e_up);
+        e_low = TMath::Min(atof((fEForests[j])->GetTitle()),e_low);
+        e_up  = TMath::Max(atof((fEForests[j])->GetTitle()),e_up);
     }
 
