Index: trunk/MagicSoft/Mars/mpedestal/MPedCalcFromData.cc
===================================================================
--- trunk/MagicSoft/Mars/mpedestal/MPedCalcFromData.cc	(revision 4356)
+++ trunk/MagicSoft/Mars/mpedestal/MPedCalcFromData.cc	(revision 4362)
@@ -62,5 +62,5 @@
     AddToBranchList("fHiGainFadcSamples");
 
-    SetRange(fgLoGainFirst, fgLoGainLast);
+    SetRange(fLoGainFirst, fLoGainLast);
     Clear();
 }
@@ -76,6 +76,6 @@
 void MPedCalcFromData::SetLoRange(Byte_t lofirst, Byte_t lolast)
 {
-    fgLoGainFirst = lofirst;
-    fgLoGainLast = lolast;
+    fLoGainFirst = lofirst;
+    fLoGainLast = lolast;
     
     fWindowSizeLoGain = lolast - lofirst;
@@ -141,5 +141,5 @@
       const UInt_t idx    = pixel.GetPixelId();
       
-      if ( (UInt_t)pixel.GetMaxHiGainSample() < HighGainThreshold ) {
+      if ( (UInt_t)pixel.GetMaxHiGainSample() < fHiGainThreshold ) {
 	  
 	  fEvtCounter[idx]++;
@@ -167,8 +167,8 @@
 	  fSumx2[idx]          += sqrsum;
 
-	  if (fEvtCounter[idx] == fgDump){
+	  if ((UInt_t)fEvtCounter[idx] == fDump){
 	      
 	      // Compute pedestals and rms from the sample
-	      const ULong_t n     = fWindowSizeLoGain*fgDump;
+	      const ULong_t n     = fWindowSizeLoGain*fDump;
 
 	      const Float_t sum  = fSumx.At(idx);
@@ -177,5 +177,5 @@
 
 	      // 1. Calculate the Variance of the sums:
-	      Float_t higainVar = (sum2-sum*sum/fgDump)/(fgDump-1.);
+	      Float_t higainVar = (sum2-sum*sum/fDump)/(fDump-1.);
 	      // 2. Scale the variance to the number of slices:
 	      higainVar /= (Float_t)(fWindowSizeLoGain);
@@ -196,7 +196,2 @@
 }
 
-
-Int_t MPedCalcFromData::PostProcess()
-{
-  return kTRUE;
-}
Index: trunk/MagicSoft/Mars/mpedestal/MPedCalcFromData.h
===================================================================
--- trunk/MagicSoft/Mars/mpedestal/MPedCalcFromData.h	(revision 4356)
+++ trunk/MagicSoft/Mars/mpedestal/MPedCalcFromData.h	(revision 4362)
@@ -22,8 +22,4 @@
 #endif
 
-#ifndef MARS_MTask
-#include "MTask.h"
-#endif
-
 #ifndef MARS_MExtractor
 #include "MExtractor.h"
@@ -33,9 +29,9 @@
 {
 
-    UInt_t fgDump; // Number for dumping.
-    Byte_t fgLoGainFirst;      // First FADC slice Lo-Gain (currently set to: 3) 
-    Byte_t fgLoGainLast;       // Last FADC slice Lo-Gain (currently set to: 14) 
+    UInt_t fDump; // Number for dumping.
+    Byte_t fLoGainFirst;      // First FADC slice Lo-Gain (currently set to: 3) 
+    Byte_t fLoGainLast;       // Last FADC slice Lo-Gain (currently set to: 14) 
     Byte_t fWindowSizeLoGain;             // Number of Lo Gain slices in window
-    Byte_t HighGainThreshold;
+    Byte_t fHiGainThreshold;
 
     TArrayD fSumx;         // sum of values
@@ -48,5 +44,4 @@
     Bool_t ReInit     ( MParList *pList );
     Int_t  Process    ();
-    Int_t  PostProcess();
 
 public:
@@ -55,6 +50,6 @@
  
     void Clear(const Option_t *o="");
-    void SetDumpEvents(UInt_t dumpevents = 0){fgDump = dumpevents;}
-    void SetHighGainThreshold(Byte_t Threshold = 0){HighGainThreshold = Threshold;}
+    void SetDumpEvents(UInt_t dumpevents = 0){fDump = dumpevents;}
+    void SetfHiGainThreshold(Byte_t Threshold = 0){fHiGainThreshold = Threshold;}
     void SetLoRange(Byte_t lofirst=0, Byte_t lolast=0);
 
