Index: trunk/MagicSoft/Mars/manalysis/MEventRateCalc.cc
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MEventRateCalc.cc	(revision 2742)
+++ trunk/MagicSoft/Mars/manalysis/MEventRateCalc.cc	(revision 2744)
@@ -29,6 +29,5 @@
 //  This task calculates the event rates from the event times and numbers.
 //
-//  It is under construction: More information comming soon....
-//
+//  The algorithm is explained in Process()
 //
 //  Input Containers:
@@ -38,4 +37,9 @@
 //    MEventRate
 //    MTimeRate [MTime] (missing)
+//
+//  FIXME: For convinience we could implement a mode which always takes
+//         n events to calculate the event rate and sets the corresponding
+//         time. This mode could be used to UPADTE files with the event
+//         rate.
 //
 //////////////////////////////////////////////////////////////////////////////
@@ -68,5 +72,10 @@
 //
 // The PreProcess searches for the following input containers:
-//  ...
+//   MTime
+//
+// The PreProcess searches for the following input containers:
+//   MEventRate
+//
+// Reset all times in the buffer
 //
 Int_t MEventRateCalc::PreProcess(MParList *pList)
@@ -90,4 +99,7 @@
 // --------------------------------------------------------------------------
 //
+// Calculate the events rate as (t1-t0)/n while t1 is the n-th event after
+// t0. If there are not yet enough events in the buffer n is the number
+// of available events. Otherwise the number setup in SetNumEvents.
 //
 Int_t MEventRateCalc::Process()
@@ -109,6 +121,4 @@
     fRate->SetReadyToSave();
 
-    // *fLog << inf << "   ---   Event Rate [Hz]: " << rate << "  (" << cnt << ")" << endl;
-
     return kTRUE;
 }
