Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 1988)
+++ trunk/MagicSoft/Mars/Changelog	(revision 1989)
@@ -1,3 +1,10 @@
                                                  -*-*- END OF LINE -*-*-
+
+ 2003/04/23: Thomas Bretz
+
+    * mhist/MHCerPhotEvt.[h,cc]:
+      - updated dox
+
+
 
  2003/04/23: Abelardo Moralejo
@@ -18,4 +25,10 @@
       - adapted to changes above.
 
+    * mmc/MMcRunHeader.[hxx,cxx], mmc/MMCEvt.[hxx,cxx]
+      - added comment in class description about the definition of
+	the azimuth angle phi in the MC classes.
+
+
+
  2003/04/23: Antonio Stamerra
 
@@ -27,9 +40,5 @@
       - modified accordingly (added MFEnergySlope)
 
- 2003/04/23: Abelardo Moralejo
-
-    * mmc/MMcRunHeader.[hxx,cxx], mmc/MMCEvt.[hxx,cxx]
-      - added comment in class description about the definition of
-	the azimuth angle phi in the MC classes.
+
 
  2003/04/22: Abelardo Moralejo
@@ -46,4 +55,6 @@
     * mfilter/MFCT1SelFinal.[h,cc]
       - added the possibility to cut also in Dist.
+
+
 
  2003/04/22: Thomas Bretz
@@ -75,8 +86,10 @@
       - added mhistmc
 
-
-
- 2003/04/22: Thomas Bretz
- 
+    * mmain/MStatusDisplay.cc:
+      - SetNoContextMenu(Bool_t flag) removed default argument
+
+    * mmain/Makefile:
+      - added -I../mhistmc
+
    * mhist/MWeight.[h,cc]:
      - added
Index: trunk/MagicSoft/Mars/mhist/MHCerPhotEvt.cc
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHCerPhotEvt.cc	(revision 1988)
+++ trunk/MagicSoft/Mars/mhist/MHCerPhotEvt.cc	(revision 1989)
@@ -63,5 +63,6 @@
 // --------------------------------------------------------------------------
 //
-// Setup four histograms for Width, Length
+// Initialize the name and title of the task.
+// Resets the sum histogram
 //
 MHCerPhotEvt::MHCerPhotEvt(const char *name, const char *title)
@@ -77,4 +78,8 @@
 }
 
+// --------------------------------------------------------------------------
+//
+// Delete the corresponding camera display if available
+//
 MHCerPhotEvt::~MHCerPhotEvt()
 {
@@ -85,11 +90,8 @@
 // --------------------------------------------------------------------------
 //
-// Setup the Binning for the histograms automatically if the correct
-// instances of MBinning (with the names 'BinningWidth' and 'BinningLength')
-// are found in the parameter list
-// Use this function if you want to set the conversion factor which
-// is used to convert the mm-scale in the camera plain into the deg-scale
-// used for histogram presentations. The conversion factor is part of
-// the camera geometry. Please create a corresponding MGeomCam container.
+// Get the event (MCerPhotEvt) the histogram might be filled with. If
+// it is not given, it is assumed, that it is filled with the argument
+// of the Fill function.
+// Looks for the camera geometry MGeomCam and resets the sum histogram.
 //
 Bool_t MHCerPhotEvt::SetupFill(const MParList *plist)
@@ -110,8 +112,7 @@
 // --------------------------------------------------------------------------
 //
-// Fill the histograms with data from a MHillas-Container.
-// Be careful: Only call this with an object of type MHillas
-//
-Bool_t MHCerPhotEvt::Fill(const MParContainer *par)
+// Fill the histograms with data from a MCerPhotEvt-Container.
+//
+Bool_t MHCerPhotEvt::Fill(const MParContainer *par, Double_t w)
 {
     const MCerPhotEvt *evt = par ? (MCerPhotEvt*)par : fEvt;
@@ -143,4 +144,8 @@
 }
 
+// --------------------------------------------------------------------------
+//
+// Scale the sum container with the number of entries
+//
 Bool_t MHCerPhotEvt::Finalize()
 {
@@ -149,4 +154,8 @@
 }
 
+// --------------------------------------------------------------------------
+//
+// Draw clone
+//
 TObject *MHCerPhotEvt::DrawClone(Option_t *opt) const
 {
@@ -154,4 +163,8 @@
 }
 
+// --------------------------------------------------------------------------
+//
+// Draw the present 'fill status'
+//
 void MHCerPhotEvt::Draw(Option_t *)
 {
@@ -168,4 +181,8 @@
 }
 
+// --------------------------------------------------------------------------
+//
+// If a camera display is not yet assigned, assign a new one.
+//
 void MHCerPhotEvt::Paint(Option_t *option="")
 {
Index: trunk/MagicSoft/Mars/mhist/MHCerPhotEvt.h
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHCerPhotEvt.h	(revision 1988)
+++ trunk/MagicSoft/Mars/mhist/MHCerPhotEvt.h	(revision 1989)
@@ -17,9 +17,9 @@
 {
 private:
-    MCerPhotEvt  fSum;
-    Int_t        fEntries;
-    MCerPhotEvt *fEvt;   //!
-    MGeomCam    *fCam; 
-    MCamDisplay *fDispl; //!
+    MCerPhotEvt  fSum;      // storing the sum
+    Int_t        fEntries;  // number of entries in the histogram
+    MGeomCam    *fCam;      // the present geometry
+    MCerPhotEvt *fEvt;      //! the current event
+    MCamDisplay *fDispl;    //! the camera display
 
 public:
@@ -27,10 +27,8 @@
     ~MHCerPhotEvt();
 
-    //    TObject *Clone(const char *newname="") const;
-
     void Clear();
 
     Bool_t SetupFill(const MParList *pList);
-    Bool_t Fill(const MParContainer *par);
+    Bool_t Fill(const MParContainer *par, Double_t w=1);
     Bool_t Finalize();
 
Index: trunk/MagicSoft/Mars/mhistmc/MHMcCT1CollectionArea.cc
===================================================================
--- trunk/MagicSoft/Mars/mhistmc/MHMcCT1CollectionArea.cc	(revision 1988)
+++ trunk/MagicSoft/Mars/mhistmc/MHMcCT1CollectionArea.cc	(revision 1989)
@@ -116,6 +116,6 @@
     if (!binsenergy || !binstheta)
     {
-        *fLog << err << dbginf << "At least one MBinning not found... aborting."
- << endl;
+        *fLog << err << dbginf << "At least one MBinning not found... aborting.";
+        *fLog << endl;
         return kFALSE;
     }
