Index: /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h
===================================================================
--- /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h	(revision 3841)
+++ /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h	(revision 3842)
@@ -61,5 +61,5 @@
     Bool_t IsUncalibrated( UncalibratedType_t typ ) const { return fInfo[1]&typ; }
 
-    Bool_t IsOK() const  { return fInfo[0]==0; }
+    Bool_t IsOK() const  { return !((fInfo[0]&kUnsuitableRun) || (fInfo[0]&kUnsuitableEvt));  }
     Bool_t IsBad() const { return fInfo[0]!=0; }
 
