Index: /trunk/MagicSoft/Mars/mfilter/MFCosmics.cc
===================================================================
--- /trunk/MagicSoft/Mars/mfilter/MFCosmics.cc	(revision 7045)
+++ /trunk/MagicSoft/Mars/mfilter/MFCosmics.cc	(revision 7046)
@@ -38,5 +38,5 @@
 //       fMinAcceptedFraction.
 //    b) check the ratio of events which were rejected against
-//       fMaxExcludedFraction.
+//       fMaxAcceptedFraction.
 //
 //  Input Containers:
@@ -82,5 +82,5 @@
     : fPedestals(NULL), fSignals(NULL), fBadPixels(NULL), fRawEvt(NULL),
     fNamePedestalCam(fgNamePedestalCam), fMaxEmptyPixels(0.2),
-    fMinAcceptedFraction(0), fMaxExcludedFraction(1)
+    fMinAcceptedFraction(0), fMaxAcceptedFraction(1)
 {
     fName  = name  ? name  : "MFCosmics";
@@ -214,5 +214,5 @@
 //       fMinAcceptedFraction.
 //    b) check the ratio of events which were rejected against
-//       fMaxExcludedFraction.
+//       fMaxAcceptedFraction.
 //
 //   return failure (kFALSE) if condition is not fullfilled.
@@ -238,16 +238,14 @@
     *fLog << endl;
 
-    const Float_t min = fMinAcceptedFraction*n;
-    const Float_t max = fMaxExcludedFraction*n;
-    if (fCut[0]<min)
-    {
-        *fLog << err << "ERROR - Fraction of accepted events " << min*100;
+    if (fCut[0]<fMinAcceptedFraction*n)
+    {
+        *fLog << err << "ERROR - Fraction of accepted events " << Form("%.1f", fCut[0]*100./n);
         *fLog << "% underrun " << fMinAcceptedFraction*100 << "%... abort." << endl;
         return kFALSE;
     }
-    if (fCut[1]>max)
-    {
-        *fLog << err << "ERROR - Fraction of excluded events " << max*100;
-        *fLog << "% exceeded " << fMaxExcludedFraction*100 << "%... abort." << endl;
+    if (fCut[0]>fMaxAcceptedFraction*n)
+    {
+        *fLog << err << "ERROR - Fraction of accepted events " << Form("%.1f", fCut[0]*100./n);
+        *fLog << "% exceeded " << fMaxAcceptedFraction*100 << "%... abort." << endl;
         return kFALSE;
     }
@@ -260,5 +258,5 @@
 // Read the setup from a TEnv, eg:
 //   MFCosmics.MaxEmptyPixels:    0.2
-//   MFCosmics.MaxExcludedFraction: 1
+//   MFCosmics.MaxAcceptedFraction: 1
 //   MFCosmics.MinAcceptedFraction: 0
 //
@@ -271,8 +269,8 @@
         SetMaxEmptyPixels(GetEnvValue(env, prefix, "MaxEmptyPixels", fMaxEmptyPixels));
     }
-    if (IsEnvDefined(env, prefix, "MaxExcludedFraction", print))
+    if (IsEnvDefined(env, prefix, "MaxAcceptedFraction", print))
     {
         rc = kTRUE;
-        SetMaxExcludedFraction(GetEnvValue(env, prefix, "MaxExcludedFraction", fMaxExcludedFraction));
+        SetMaxAcceptedFraction(GetEnvValue(env, prefix, "MaxAcceptedFraction", fMaxAcceptedFraction));
     }
     if (IsEnvDefined(env, prefix, "MinAcceptedFraction", print))
Index: /trunk/MagicSoft/Mars/mfilter/MFCosmics.h
===================================================================
--- /trunk/MagicSoft/Mars/mfilter/MFCosmics.h	(revision 7045)
+++ /trunk/MagicSoft/Mars/mfilter/MFCosmics.h	(revision 7046)
@@ -32,5 +32,5 @@
 
     Float_t fMinAcceptedFraction;      // return error if exceeded
-    Float_t fMaxExcludedFraction;      // return error if exceeded
+    Float_t fMaxAcceptedFraction;      // return error if exceeded
 
     // MFCosmics
@@ -53,5 +53,5 @@
     Float_t GetMaxEmptyPixels() const          { return fMaxEmptyPixels; }
 
-    void    SetMaxExcludedFraction(const Float_t n) { fMaxExcludedFraction = n;    }
+    void    SetMaxAcceptedFraction(const Float_t n) { fMaxAcceptedFraction = n;    }
     void    SetMinAcceptedFraction(const Float_t n) { fMinAcceptedFraction = n;    }
 
