Index: trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc
===================================================================
--- trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc	(revision 8165)
+++ trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc	(revision 8279)
@@ -1,3 +1,5 @@
 /* ======================================================================== *\
+! $Name: not supported by cvs2svn $:$Id: MBadPixelsCam.cc,v 1.48 2007-01-30 14:16:44 tbretz Exp $
+! --------------------------------------------------------------------------
 !
 ! *
@@ -17,5 +19,5 @@
 !
 !   Author(s): Thomas Bretz 1/2004 <mailto:tbretz@astro.uni-wuerzburg.de>
-!              Markus Gaug  3/2004 <mailto:markus@ifae.es>
+!   Author(s): Markus Gaug  3/2004 <mailto:markus@ifae.es>
 !
 !   Copyright: MAGIC Software Development, 2000-2004
@@ -36,4 +38,5 @@
 #include <iostream>
 
+#include <TArrayC.h>
 #include <TClonesArray.h>
 
@@ -525,4 +528,24 @@
   PrintBadPixels(MBadPixelsPix::kRelTimeOscillating ,"Relative Arr. Times Oscillation");
   PrintBadPixels(MBadPixelsPix::kDeviatingFFactor   ,"Deviating global F-Factor");
+}
+
+TArrayC MBadPixelsCam::GetUnsuitable(MBadPixelsPix::UnsuitableType_t typ) const
+{
+    TArrayC rc(GetSize());
+
+    for (Int_t i=0; i<rc.GetSize(); i++)
+        rc[i] = (*this)[i].IsUnsuitable(typ) ? 0 : 1;
+
+    return rc;
+}
+
+TArrayC MBadPixelsCam::GetUncalibrated(MBadPixelsPix::UncalibratedType_t typ) const
+{
+    TArrayC rc(GetSize());
+
+    for (Int_t i=0; i<rc.GetSize(); i++)
+        rc[i] = (*this)[i].IsUncalibrated(typ) ? 0 : 1;
+
+    return rc;
 }
 
Index: trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.h
===================================================================
--- trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.h	(revision 8165)
+++ trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.h	(revision 8279)
@@ -1,2 +1,5 @@
+/* ======================================================================== *\
+!  $Name: not supported by cvs2svn $:$Id: MBadPixelsCam.h,v 1.11 2007-01-30 14:16:44 tbretz Exp $
+\* ======================================================================== */
 #ifndef MARS_MBadPixelsCam
 #define MARS_MBadPixelsCam
@@ -9,6 +12,8 @@
 #endif
 
+class TArrayC;
+class TClonesArray;
+
 class MGeomPix;
-class TClonesArray;
 
 class MBadPixelsCam : public MParContainer, public MCamEvent
@@ -50,4 +55,7 @@
     Short_t GetNumMaxCluster(const MGeomCam &geom, Int_t aidx=-1) { return GetNumMaxCluster(MBadPixelsPix::kUnsuitableRun, geom, aidx); }
 
+    TArrayC GetUnsuitable(MBadPixelsPix::UnsuitableType_t typ=MBadPixelsPix::kUnsuitable) const;
+    TArrayC GetUncalibrated(MBadPixelsPix::UncalibratedType_t typ) const;
+
     void   AsciiRead(istream &fin);
     Bool_t AsciiWrite(ostream &out) const;
