Index: trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.cc
===================================================================
--- trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.cc	(revision 7130)
+++ trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.cc	(revision 7188)
@@ -44,4 +44,19 @@
 // are coded in the following form:
 //
+//
+// * Set bits leading to an unsuitable flag:
+//
+// BIT(7 ): kLoGainSaturation     :  The Low Gain signals were saturated during calibration
+// BIT(8 ): kChargeIsPedestal     :  The calibration signal contained only pedestals - presumably dead pixel
+// BIT(12): kMeanTimeInFirstBin   :  The signal has its mean maximum in the first used FADC slice - signal extractor bad
+// BIT(13): kMeanTimeInLast2Bins  :  The signal has its mean maximum in the last two used FADC slice - signal extractor bad
+// BIT(14): kDeviatingNumPhes     :  The calculated number of phes deviates by more than +6-5.5 sigma of the phes mean of the same area idx.
+// BIT(19): kHiGainOverFlow       :  The Hi-Gain calibration histogram showed overflow in more than 0.5% of the events
+// BIT(20): kLoGainOverFlow       :  The Lo-Gain calibration histogram showed overflow in more than 0.5% of the events
+// BIT(23): kDeadPedestalRms      :  The pedestal RMS was 4.5 sigma below or 25 sigma above the average per area idx.
+// BIT(24): kFluctuatingArivalTimes: The RMS of the position of the pulse maximum is larger than 3.5 FADC slices.
+// BIT(24): kLoGainBlackout       :  A high gain saturated pixel had too many blackout events in the low gain
+//
+//
 // * Set bits leading to an unreliable flag:
 // 
@@ -52,23 +67,12 @@
 // BIT(5 ): kLoGainOscillating   :  The Low  Gain signals fourier transform showed abnormal behavior  
 // BIT(6 ): kRelTimeOscillating  :  The High Gain arrival times fourier transform showed abnormal behavior  
-// BIT(14): kDeviatingNumPhes    :  The calculated number of photo-electrons deviates too much from the mean - inconsistency
+// BIT(11): kChargeSigmaNotValid :  The sigma of the signal distribution is smaller than the pedestal RMS - presumably a pixel with a star in its FOV only during the pedestal taking
 // BIT(16): kDeviatingFFactor    :  The calculated overall F-Factor deviates too much from the mean - inconsistency
 // BIT(15): kDeviatingNumPhots   :  The calculated number of calibrated photons deviates too much from the mean - inconsistency
 //
-// * Set bits leading to an unsuitable flag:
-//
-// BIT(7 ): kLoGainSaturation    :  The Low  Gain signals were saturated during calibration
-// BIT(8 ): kChargeIsPedestal    :  The calibration signal contained only pedestals - presumably dead pixel
-// BIT(9 ): kChargeErrNotValid   :  The absolute error of the derived charge has given non-sense - presumably pedestal
-// BIT(10): kChargeRelErrNotValid:  The relative error of the derived charge was too large or too small
-// BIT(11): kChargeSigmaNotValid :  The sigma of the pedestal distribution smaller than the pedestal RMS - presumably a pixel with a star in its FOV only during the pedestal taking 
-// BIT(12): kMeanTimeInFirstBin  :  The signal has its mean maximum in the first used FADC slice - signal extractor bad
-// BIT(13): kMeanTimeInLast2Bins :  The signal has its mean maximum in the last two used FADC slice - signal extractor bad
-// 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:
 //
-// BIT(17): kConversionHiLoNotValid: The calibrated Conversion between Hi-Gain and Low Gain gives absurd results
+// BIT(17): kConversionHiLoNotValid: The inter-calibration constant between Hi-Gain and Low Gain does not exist.
 //
 // These bits can be called with the enum MBadPixelsPix::UncalibratedType_t in combination 
Index: trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h
===================================================================
--- trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h	(revision 7130)
+++ trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h	(revision 7188)
@@ -55,5 +55,6 @@
       kHiLoOscillating          = BIT(22),
       kDeadPedestalRms          = BIT(23),
-      kFluctuatingArrivalTimes  = BIT(24)
+      kFluctuatingArrivalTimes  = BIT(24),
+      kLoGainBlackout           = BIT(25)
     };
     
@@ -90,23 +91,23 @@
 				     || IsUncalibrated(kLoGainSaturation   ) 
 				     || IsUncalibrated(kConversionHiLoNotValid) 
-				     || IsUncalibrated(kLoGainOscillating  ) ; }
+				     || IsUncalibrated(kLoGainOscillating  )
+				     || IsUncalibrated(kLoGainBlackout  ); }
     Bool_t IsHiGainBad() const { return IsUnsuitable  (kUnsuitableRun      )
   				     || IsUncalibrated(kHiGainOscillating  ) ; }
 
     Int_t  GetUnsuitableCalLevel() const   {
-      if (!IsUnsuitable())                        return 0;
-      if (IsUncalibrated( kChargeIsPedestal    )) return 1;
-      if (IsUncalibrated( kChargeRelErrNotValid)) return 2;
-      if (IsUncalibrated( kLoGainSaturation    )) return 3;
-      if (IsUncalibrated( kMeanTimeInFirstBin  )) return 4;
-      if (IsUncalibrated( kMeanTimeInLast2Bins )) return 5;
-      if (IsUncalibrated( kDeviatingNumPhots   )) return 6;
-      if (IsUncalibrated( kHiGainOverFlow      )) return 7;
-      if (IsUncalibrated( kLoGainOverFlow      )) return 8;
-      if (IsUncalibrated( kDeadPedestalRms     )) return 9;
-      if (IsUncalibrated( kFluctuatingArrivalTimes)) return 10;
-      if (IsUncalibrated( kDeviatingNumPhes       )) return 11;
-      if (IsUncalibrated( kPreviouslyExcluded     )) return 12;
-      return 13;
+      if (!IsUnsuitable())                           return 0;
+      if (IsUncalibrated( kChargeIsPedestal    ))    return 1;
+      if (IsUncalibrated( kLoGainSaturation    ))    return 2;
+      if (IsUncalibrated( kMeanTimeInFirstBin  ))    return 3;
+      if (IsUncalibrated( kMeanTimeInLast2Bins ))    return 4;
+      if (IsUncalibrated( kHiGainOverFlow      ))    return 5;
+      if (IsUncalibrated( kLoGainOverFlow      ))    return 6;
+      if (IsUncalibrated( kDeadPedestalRms     ))    return 7;
+      if (IsUncalibrated( kFluctuatingArrivalTimes)) return 8;
+      if (IsUncalibrated( kDeviatingNumPhes    ))    return 9;
+      if (IsUncalibrated( kLoGainBlackout      ))    return 10;
+      if (IsUncalibrated( kPreviouslyExcluded  ))    return 11;
+      return 12;
     }
 
