Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 3797)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 3798)
@@ -18,4 +18,11 @@
 
                                                  -*-*- END OF LINE -*-*-
+ 2004/04/22: Thomas Bretz
+
+   * mhist/MHCamera.[h,cc]:
+     - implemented SetUsed
+
+
+
  2004/04/22: Markus Gaug
 
@@ -32,4 +39,6 @@
    * mjobs/MJCalibration.cc
      - added MRawFileRead for option SetDataCheck()
+
+
 
  2004/04/21: Thomas Bretz
Index: /trunk/MagicSoft/Mars/mhist/MHCamera.cc
===================================================================
--- /trunk/MagicSoft/Mars/mhist/MHCamera.cc	(revision 3797)
+++ /trunk/MagicSoft/Mars/mhist/MHCamera.cc	(revision 3798)
@@ -268,4 +268,21 @@
 // ------------------------------------------------------------------------
 //
+// Call this if you want to change the display status (displayed or not)
+// for all pixels. val==0 means that the pixel is not displayed.
+//
+void MHCamera::SetUsed(const TArrayC &arr)
+{
+    if (fNcells-2 != arr.GetSize())
+    {
+        gLog << warn << "WARNING - MHCamera::SetUsed: array size mismatch... ignored." << endl;
+        return;
+    }
+
+    for (Int_t idx=0; idx<fNcells-2; idx++)
+        arr[idx] ? SetUsed(idx) : ResetUsed(idx);
+}
+
+// ------------------------------------------------------------------------
+//
 // Return the mean value of all entries which are used if all=kFALSE and
 // of all entries if all=kTRUE if sector<0. If sector>=0 only
Index: /trunk/MagicSoft/Mars/mhist/MHCamera.h
===================================================================
--- /trunk/MagicSoft/Mars/mhist/MHCamera.h	(revision 3797)
+++ /trunk/MagicSoft/Mars/mhist/MHCamera.h	(revision 3798)
@@ -143,4 +143,5 @@
 
     virtual void     SetCamError(const MCamEvent &evt, Int_t type=0);
+    virtual void     SetUsed(const TArrayC &arr);
 
     virtual void     CntCamContent(const MCamEvent &evt, Double_t threshold, Int_t type=0);
