Index: /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc
===================================================================
--- /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc	(revision 3801)
+++ /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc	(revision 3802)
@@ -141,5 +141,5 @@
 
     //
-    // Create arrays
+    // Create arrays (FIXME: Check if its possible to create it only once)
     //
     TArrayD nphot(entries);
@@ -251,4 +251,5 @@
     const Int_t entries = fPedPhot->GetSize();
 
+    // Create arrays (FIXME: Check if its possible to create it only once)
     TArrayD ped(entries);
     TArrayD rms(entries);
Index: /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.h
===================================================================
--- /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.h	(revision 3801)
+++ /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.h	(revision 3802)
@@ -22,9 +22,9 @@
     Byte_t fNumMinNeighbors;
 
-
     enum
     {
         kUseInterpolation = BIT(1),
         kUseCentralPixel  = BIT(2),
+        kProcessRMS       = BIT(3)
     };
 
@@ -34,10 +34,11 @@
     void InterpolatePedestals() const;
 
-    void  Interpolate() const;
-    void  Unmap() const;
-    void  StreamPrimitive(ofstream &out) const;
+    //void  Interpolate() const;
+    void   Unmap() const;
+    void   StreamPrimitive(ofstream &out) const;
 
-    Int_t PreProcess(MParList *pList);
-    Int_t Process();
+    Bool_t ReInit(MParList *pList);
+    Int_t  PreProcess(MParList *pList);
+    Int_t  Process();
 
 public:
@@ -52,4 +53,8 @@
         b ? SETBIT(fFlags, kUseCentralPixel) : CLRBIT(fFlags, kUseCentralPixel);
     }
+    void SetProcessRMS(Bool_t b=kTRUE)
+    {
+        b ? SETBIT(fFlags, kProcessRMS) : CLRBIT(fFlags, kProcessRMS);
+    }
     void SetNumMinNeighbors(UShort_t num) { fNumMinNeighbors=num; }
 
