Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 1712)
+++ trunk/MagicSoft/Mars/Changelog	(revision 1713)
@@ -1,4 +1,8 @@
 
                                                          -*-*- END -*-*-
+ 2003/01/17: Robert Wagner
+    * manalysis/MApplyPadding.cc
+      - bugfix: Effective number of used pixels taken from
+        MCerPhotEvt container, not from MPedestalCam
 
  2003/01/16: Wolfgang Wittek
Index: trunk/MagicSoft/Mars/manalysis/MApplyPadding.cc
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MApplyPadding.cc	(revision 1712)
+++ trunk/MagicSoft/Mars/manalysis/MApplyPadding.cc	(revision 1713)
@@ -253,7 +253,9 @@
    newPed.InitSize(fPed->GetSize());
 
-   const UInt_t npix = fPed->GetSize(); // Total number of pixels
+   //   const UInt_t npix = fPed->GetSize(); 
+   const UInt_t npix = fEvt->GetNumPixels(); // Total number of pixels
+
    for (UInt_t i=0; i<npix; i++) {
-     MCerPhotPix pix = fEvt->operator[](i);
+     MCerPhotPix pix = fEvt->operator[](i);      
      if (!pix.IsPixelUsed())
        continue;
@@ -266,5 +268,4 @@
      Double_t error = pix.GetErrorPhot();
      pix.SetErrorPhot(sqrt(error*error + quadraticDiff));
-     
      MPedestalPix ppix = fPed->operator[](i);
      MPedestalPix npix;
