Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 4871)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 4872)
@@ -19,4 +19,10 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+ 2004/09/07: Markus Gaug
+
+   * mcalib/MHGausEvents.[h,cc]
+     - added function IsOnlyUnderflow()
+
 
  2004/09/06: Thomas Bretz
Index: /trunk/MagicSoft/Mars/mcalib/MHGausEvents.cc
===================================================================
--- /trunk/MagicSoft/Mars/mcalib/MHGausEvents.cc	(revision 4871)
+++ /trunk/MagicSoft/Mars/mcalib/MHGausEvents.cc	(revision 4872)
@@ -826,12 +826,29 @@
 }
 
+// --------------------------------------------------------------------------
+//
+// Return kFALSE if number of entries is 0 
+//
 const Bool_t MHGausEvents::IsEmpty() const
 {
-    return !(fHGausHist.GetEntries());
-}
-
+  return !(fHGausHist.GetEntries());
+}
+
+// --------------------------------------------------------------------------
+//
+// Return kTRUE  if number of entries is bin content of fNbins+1
+//
 const Bool_t MHGausEvents::IsOnlyOverflow() const
 {
   return fHGausHist.GetEntries() == fHGausHist.GetBinContent(fNbins+1);
+}
+
+// --------------------------------------------------------------------------
+//
+// Return kTRUE  if number of entries is bin content of 0
+//
+const Bool_t MHGausEvents::IsOnlyUnderflow() const
+{
+  return fHGausHist.GetEntries() == fHGausHist.GetBinContent(0);
 }
 
Index: /trunk/MagicSoft/Mars/mcalib/MHGausEvents.h
===================================================================
--- /trunk/MagicSoft/Mars/mcalib/MHGausEvents.h	(revision 4871)
+++ /trunk/MagicSoft/Mars/mcalib/MHGausEvents.h	(revision 4872)
@@ -124,5 +124,6 @@
   const Bool_t IsFourierSpectrumOK()     const;
   const Bool_t IsGausFitOK()             const; 
-  const Bool_t IsOnlyOverflow()          const;  
+  const Bool_t IsOnlyOverflow()          const;
+  const Bool_t IsUnderOverflow()         const;  
 
   // Fill
