Index: trunk/Mars/Changelog
===================================================================
--- trunk/Mars/Changelog	(revision 9856)
+++ trunk/Mars/Changelog	(revision 9857)
@@ -31,4 +31,7 @@
    * mhist/MHHadronness.cc:
      - fixed min/max of the intgral histogram
+
+   * mfbase/MFEventSelector.cc:
+     - if the number of events to be selected is negative select all events
 
 
Index: trunk/Mars/mfbase/MFEventSelector.cc
===================================================================
--- trunk/Mars/mfbase/MFEventSelector.cc	(revision 9856)
+++ trunk/Mars/mfbase/MFEventSelector.cc	(revision 9857)
@@ -150,9 +150,16 @@
     }
 
+    if (fNumSelectEvts<0)
+    {
+        fSelRatio = 1;
+        *fLog << inf << "No selection will be done - all events selected." << endl;
+        return kTRUE;
+    }
+
     // Calculate selection probability
     fSelRatio = (Double_t)fNumSelectEvts/fNumTotalEvts;
 
-    *fLog << inf << "MFEventSelector:  Selection probability = " << fNumSelectEvts;
-    *fLog << "/" << fNumTotalEvts << " = " << Form("%.2f", fSelRatio) << endl;
+    *fLog << inf << "Selection probability = " << fNumSelectEvts << "/";
+    *fLog << fNumTotalEvts << " = " << Form("%.2f", fSelRatio) << endl;
 
     return kTRUE;
