Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 5365)
+++ trunk/MagicSoft/Mars/Changelog	(revision 5366)
@@ -20,4 +20,10 @@
 
                                                  -*-*- END OF LINE -*-*-
+ 2004/11/10: Abelardo Moralejo
+
+   * mfbase/MFEventSelector2.cc
+     - Added some comments in class description.
+
+
  2004/11/09: Abelardo Moralejo
 
Index: trunk/MagicSoft/Mars/mfbase/MFEventSelector2.cc
===================================================================
--- trunk/MagicSoft/Mars/mfbase/MFEventSelector2.cc	(revision 5365)
+++ trunk/MagicSoft/Mars/mfbase/MFEventSelector2.cc	(revision 5366)
@@ -28,7 +28,15 @@
 // MFEventSelector2
 //
-// This is a filter to make a selection of events from a file.
-//
-// see Construtor for more instructions and the example below:
+// This is a filter to make a selection of events from a file, according to
+// a certain predetermined distribution in a given parameter (or combination
+// of parameters). The distribution is passed to the class through a histogram
+// of the relevant parameter(s) contained in an object of type MH3. The filter
+// will return true or false in each event such that the final distribution
+// of the parameter(s) for the events surviving the filter is the desired one. 
+// The selection of which events are kept in each bin of the parameter(s) is 
+// made at random (obviously the selection probability depends on the 
+// values of the parameters, and is dictated by the input histogram).
+//
+// See Constructor for more instructions and also the example below:
 //
 // --------------------------------------------------------------------
@@ -124,14 +132,13 @@
 // Constructor. Takes a reference to an MH3 which gives you
 //  1) The nominal distribution. The distribution is renormalized, so
-//     that the absolute values doesn't matter. To crop the distribution
+//     that the absolute values do not matter. To crop the distribution
 //     to a nominal value of total events use SetNumMax
-//  2) The dimension of the MH3 determins the dimension in which the
+//  2) The parameters histogrammed in MH3 are those on which the
 //     event selector will work, eg
 //       MH3 hist("MMcEvt.fTelescopeTheta", "MMcEvt.fEnergy");
 //     Would result in a redistribution of Theta and Energy.
-//  3) The given rules are the variables which are used for the
-//     redistribution, eg:
+//  3) Rules are also accepted in the argument of MH3, for instance: 
 //       MH3 hist("MMcEvt.fTelescopeTheta");
-//     would result in redistributing Theta.
+//     would result in redistributing Theta, while
 //       MH3 hist("cos(MMcEvt.fTelescopeTheta)");
 //     would result in redistributing cos(Theta).
@@ -241,5 +248,5 @@
 //
 // After reading the histograms the arrays used for the random event
-// selction are created. If a MStatusDisplay is set the histograms are
+// selection are created. If a MStatusDisplay is set the histograms are
 // displayed there.
 //
