Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 2849)
+++ trunk/MagicSoft/Mars/Changelog	(revision 2850)
@@ -4,4 +4,9 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+ 2004/01/19: Javier Rico
+   * manalysis/MPedCalcPedRun.cc, manalysis/MPedPhotCalc.cc
+     - Added documentation of member functions
+
 
  2004/01/19: Abelardo Moralejo
Index: trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc	(revision 2849)
+++ trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc	(revision 2850)
@@ -65,4 +65,7 @@
 using namespace std;
 
+//
+// default constructor
+//
 MPedCalcPedRun::MPedCalcPedRun(const char *name, const char *title)
 {
@@ -74,4 +77,15 @@
 }
 
+// --------------------------------------------------------------------------
+//
+// Look for the following input containers:
+//
+//  - MRawEvtData
+// 
+// The following output containers are also searched and created if
+// they were not found:
+//
+//  - MPedestalCam
+//
 Int_t MPedCalcPedRun::PreProcess( MParList *pList )
 {
@@ -92,4 +106,12 @@
 }
 
+// --------------------------------------------------------------------------
+//
+// The ReInit searches for the following input containers:
+//  - MRawRunHeader
+//
+// It also initializes the data arrays fSumx and fSumx2 
+// (only for the first read file)
+// 
 Bool_t MPedCalcPedRun::ReInit(MParList *pList)
 {
@@ -122,5 +144,10 @@
     return kTRUE;
 }
-
+// --------------------------------------------------------------------------
+//
+// Fill the MPedestalCam container with the signal mean and rms for the event.
+// Store the measured signal in arrays fSumx and fSumx2 so that we can 
+// calculate the overall mean and rms in the PostProcess()
+//
 Int_t MPedCalcPedRun::Process()
 {
@@ -161,4 +188,8 @@
 }
 
+// --------------------------------------------------------------------------
+//
+// Compute signal mean and rms in the whole run and store it in MPedestalCam
+//
 Int_t MPedCalcPedRun::PostProcess()
 {
Index: trunk/MagicSoft/Mars/manalysis/MPedPhotCalc.cc
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MPedPhotCalc.cc	(revision 2849)
+++ trunk/MagicSoft/Mars/manalysis/MPedPhotCalc.cc	(revision 2850)
@@ -59,4 +59,7 @@
 using namespace std;
 
+//
+// Default constructor
+//
 MPedPhotCalc::MPedPhotCalc(const char *name, const char *title)
 {
@@ -65,4 +68,15 @@
 }
 
+// --------------------------------------------------------------------------
+//
+// Look for the following input containers:
+//
+//  - MCerPhotEvt
+// 
+// The following output containers are also searched and created if
+// they were not found:
+//
+//  - MPedPhotCam
+//
 Int_t MPedPhotCalc::PreProcess( MParList *pList )
 {      
@@ -83,4 +97,12 @@
 }
 
+// --------------------------------------------------------------------------
+//
+// The ReInit searches for the following input containers:
+//  - MRawRunHeader
+//
+// It also initializes the data arrays fSumx and fSumx2 
+// (only for the first read file)
+// 
 Bool_t MPedPhotCalc::ReInit(MParList *pList)
 {
@@ -111,4 +133,9 @@
 }
 
+// --------------------------------------------------------------------------
+//
+// Store the measured number of photons in arrays fSumx and fSumx2
+// so that we can calculate the mean and rms in the PostProcess()
+//
 Int_t MPedPhotCalc::Process()
 {
@@ -129,4 +156,8 @@
 }
 
+// --------------------------------------------------------------------------
+//
+// Compute mean and rms of the measured charge distribution (in photons)
+//
 Int_t MPedPhotCalc::PostProcess()
   {
