Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 7642)
+++ trunk/MagicSoft/Mars/Changelog	(revision 7643)
@@ -27,4 +27,11 @@
    * mtools/MTFillMatrix.cc:
      - added accelerator for executing the tasklist as in MJCut
+
+   * mfilter/MFEnergySlope.cc:
+     - small update to output
+
+   * mfbase/MFilterList.[h,cc]:
+     - fixed a really old problem that the contents of the list never
+       got ReInit. Hopefully this never had bad sideeffects.
 
 
Index: trunk/MagicSoft/Mars/NEWS
===================================================================
--- trunk/MagicSoft/Mars/NEWS	(revision 7642)
+++ trunk/MagicSoft/Mars/NEWS	(revision 7643)
@@ -6,4 +6,7 @@
      and optimization macros) by skipping some obsolete calles in the
      eventloop the first and second loop could be accelerated by ~20%
+
+   - general: Fixed a missing feature in the MFilterLIst class which
+     prevented MFEnergySlope from working correctly in trainenergy.C
 
    - merpp: Adapted to new raw data file format version 6
Index: trunk/MagicSoft/Mars/mfbase/MFilterList.cc
===================================================================
--- trunk/MagicSoft/Mars/mfbase/MFilterList.cc	(revision 7642)
+++ trunk/MagicSoft/Mars/mfbase/MFilterList.cc	(revision 7643)
@@ -297,4 +297,30 @@
 // --------------------------------------------------------------------------
 //
+// ReInit all filters in the list
+//
+Bool_t MFilterList::ReInit(MParList *pList)
+{
+    TIter Next(&fFilters);
+
+    MFilter *filter=NULL;
+
+    //
+    // loop over all filters
+    //
+    while ((filter=(MFilter*)Next()))
+    {
+        if (!filter->ReInit(pList))
+        {
+            *fLog << err << "Error - ReInit Filter ";
+            *fLog << filter->GetName() << " in " << fName << endl;
+            return kFALSE;
+        }
+    }
+
+    return kTRUE;
+}
+
+// --------------------------------------------------------------------------
+//
 // Processes (updates) all filters in the list.
 //
Index: trunk/MagicSoft/Mars/mfbase/MFilterList.h
===================================================================
--- trunk/MagicSoft/Mars/mfbase/MFilterList.h	(revision 7642)
+++ trunk/MagicSoft/Mars/mfbase/MFilterList.h	(revision 7643)
@@ -55,7 +55,8 @@
     TString GetDataMember() const;
 
-    Int_t PreProcess(MParList *pList);
-    Int_t Process();
-    Int_t PostProcess();
+    Bool_t ReInit(MParList *plist);
+    Int_t  PreProcess(MParList *pList);
+    Int_t  Process();
+    Int_t  PostProcess();
 
     void SetAccelerator(Byte_t acc=kAccStandard);
Index: trunk/MagicSoft/Mars/mfilter/MFEnergySlope.cc
===================================================================
--- trunk/MagicSoft/Mars/mfilter/MFEnergySlope.cc	(revision 7642)
+++ trunk/MagicSoft/Mars/mfilter/MFEnergySlope.cc	(revision 7643)
@@ -127,5 +127,5 @@
 
     //
-    // Read info from the MC sample (it must be generated with
+    // Read info from0 the MC sample (it must be generated with
     //   reflector ver.0.6 and camera ver. 0.6)
     //
@@ -148,6 +148,6 @@
     *fLog << inf;
     *fLog << "Fetched MC info:" << endl;
-    *fLog << "  Change E Slope " << fMcSlope << " (" << fMcMinEnergy << " < E < ";
-    *fLog << fMcMaxEnergy << ") to " << fNewSlope << endl;
+    *fLog << "  Change E Slope from " << -fMcSlope << " (" << fMcMinEnergy << " < E < ";
+    *fLog << fMcMaxEnergy << ") to " << -fNewSlope << endl;
     *fLog << "  Norm factor: " << fN0 << endl;
 
@@ -191,11 +191,8 @@
      */
 
-    const Float_t Nexp = fN0 * pow(energy,fMcSlope-fNewSlope);
+    const Float_t Nexp = fN0 * pow(energy, fMcSlope-fNewSlope);
     const Float_t Nrnd = gRandom->Uniform();
 
     fResult = Nexp > Nrnd;
-
-    //if (fResult)
-    //    fNumSelectedEvts++;
 
     return kTRUE;
