Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 4786)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 4787)
@@ -19,4 +19,12 @@
 
                                                  -*-*- END OF LINE -*-*-
+ 2004/08/29: Markus Gaug
+ 
+  * mbadpixels/MBadPixelsPix.[h,cc] 
+    - introduced new calibration bits: kHiGainOverFlow 
+      and kLoGainOverFlow being filled when the calibration histograms 
+      overflow. Will cause an kUnsuitableRun afterwards. 
+
+
  2004/08/27: Florian Goebel
 
@@ -26,7 +34,7 @@
  2004/08/27: Hendrik Bartko
 
-  * msignal/MExtractTime.cc
-    - check that the pixel has a low gain before calculating the time 
-      for the low gain in case of a saturated high gain.
+   * msignal/MExtractTime.cc
+     - check that the pixel has a low gain before calculating the time 
+       for the low gain in case of a saturated high gain.
 
  2004/08/27: Markus Gaug
Index: /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.cc
===================================================================
--- /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.cc	(revision 4786)
+++ /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.cc	(revision 4787)
@@ -65,4 +65,7 @@
 // BIT(15): kDeviatingNumPhots   :  The calculated number of calibrated photons deviates too much from the mean - inconsistency
 // BIT(16): kDeviatingFFactor    :  The calculated overall F-Factor deviates too much from the mean - inconsistency
+// BIT(19): kHiGainOverFlow      :  The Hi-Gain calibration histogram showed overflow without saturating the FADC
+// BIT(20): kLoGainOverFlow      :  The Lo-Gain calibration histogram showed overflow 
+//
 //
 // * Set bits leading to not useable low-gain signal:
Index: /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h
===================================================================
--- /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h	(revision 4786)
+++ /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h	(revision 4787)
@@ -48,5 +48,7 @@
       kDeviatingFFactor         = BIT(16),
       kDeviatingTimeResolution  = BIT(17),
-      kConversionHiLoNotValid   = BIT(18)
+      kConversionHiLoNotValid   = BIT(18),
+      kHiGainOverFlow           = BIT(19),
+      kLoGainOverFlow           = BIT(20)
     };
     
@@ -98,5 +100,7 @@
       if (IsUncalibrated( kDeviatingFFactor    )) return 8;
       if (IsUncalibrated( kDeviatingNumPhots   )) return 9;
-      return 10;
+      if (IsUncalibrated( kHiGainOverFlow      )) return 10;
+      if (IsUncalibrated( kLoGainOverFlow      )) return 11;
+      return 12;
     }
     
Index: /trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc
===================================================================
--- /trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc	(revision 4786)
+++ /trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc	(revision 4787)
@@ -823,5 +823,6 @@
   if (fPheFFactorMethodVar < 0. )
     return kFALSE;
-  
+
+  return kTRUE;
 }
 
