Index: /trunk/MagicSoft/Mars/mranforest/MRFEnergyEst.cc
===================================================================
--- /trunk/MagicSoft/Mars/mranforest/MRFEnergyEst.cc	(revision 7397)
+++ /trunk/MagicSoft/Mars/mranforest/MRFEnergyEst.cc	(revision 7398)
@@ -104,5 +104,5 @@
     const Int_t nobs = 3; // Number of obsolete columns
 
-    MDataArray &dcol = *matrixtrain.GetColumns();
+    const MDataArray &dcol = *matrixtrain.GetColumns();
 
     MDataArray usedrules;
@@ -292,5 +292,5 @@
     if (fEForests.GetEntries()==1)
     {
-        const MRanForest *rf = (MRanForest*)fEForests[0];
+        MRanForest *rf = (MRanForest*)fEForests[0];
         fEnergyEst->SetVal(rf->CalcHadroness(event));
         fEnergyEst->SetReadyToSave();
Index: /trunk/MagicSoft/Mars/mranforest/MRanForest.cc
===================================================================
--- /trunk/MagicSoft/Mars/mranforest/MRanForest.cc	(revision 7397)
+++ /trunk/MagicSoft/Mars/mranforest/MRanForest.cc	(revision 7398)
@@ -265,8 +265,6 @@
     MRanTree *tree;
     while ((tree=(MRanTree*)Next()))
-    {
-        hadroness+=(fTreeHad[ntree]=tree->TreeHad(event));
-        ntree++;
-    }
+        hadroness += (fTreeHad[ntree++]=tree->TreeHad(event));
+
     return hadroness/ntree;
 }
Index: /trunk/MagicSoft/Mars/mranforest/MRanForestGrow.h
===================================================================
--- /trunk/MagicSoft/Mars/mranforest/MRanForestGrow.h	(revision 7397)
+++ /trunk/MagicSoft/Mars/mranforest/MRanForestGrow.h	(revision 7398)
@@ -27,5 +27,5 @@
     Int_t PostProcess();
 
-    UInt_t  GetEntries()            { return fNumTrees; }
+    UInt_t  GetEntries()            { return 100; }//fNumTrees; }
     TString GetFileName() const     { return "MRanForestGrow"; }
     TString GetFullFileName() const { return "MRanForestGrow"; }
