Index: trunk/MagicSoft/Mars/mpedestal/MPedestalSubtractedEvt.cc
===================================================================
--- trunk/MagicSoft/Mars/mpedestal/MPedestalSubtractedEvt.cc	(revision 9224)
+++ trunk/MagicSoft/Mars/mpedestal/MPedestalSubtractedEvt.cc	(revision 9226)
@@ -1,4 +1,4 @@
 /* ======================================================================== *\
-! $Name: not supported by cvs2svn $:$Id: MPedestalSubtractedEvt.cc,v 1.6 2007-06-16 22:08:00 tbretz Exp $
+! $Name: not supported by cvs2svn $:$Id: MPedestalSubtractedEvt.cc,v 1.7 2009-01-17 14:52:41 tbretz Exp $
 ! --------------------------------------------------------------------------
 !
@@ -32,6 +32,7 @@
 //
 /////////////////////////////////////////////////////////////////////////////
-
 #include "MPedestalSubtractedEvt.h"
+
+#include "MLogManip.h"
 
 ClassImp(MPedestalSubtractedEvt);
@@ -185,4 +186,28 @@
 }
 
+void MPedestalSubtractedEvt::Print(Option_t *o) const
+{
+    *fLog << all << GetDescriptor() << endl;
+    *fLog << " Num Pixels:  " << fNumPixels << " (" << fNumSamples << " samples)" << endl;
+    *fLog << " Samples raw:" << hex << endl;;
+    for (UInt_t idx=0; idx<fNumPixels; idx++)
+    {
+        *fLog << setw(4) << dec << idx << hex << ":";
+        for (UInt_t i=0; i<fNumSamples; i++)
+            *fLog << " " << fSamplesRaw[idx*fNumSamples+i];
+        *fLog << endl;
+    }
+    *fLog << dec << endl;
+    *fLog << " Samples:" << endl;;
+    for (UInt_t idx=0; idx<fNumPixels; idx++)
+    {
+        *fLog << setw(4) << idx << ":";
+        for (UInt_t i=0; i<fNumSamples; i++)
+            *fLog << " " << fSamples[idx*fNumSamples+i];
+        *fLog << endl;
+    }
+    *fLog << endl;
+}
+
 /*
 #include <TSpline.h>
Index: trunk/MagicSoft/Mars/mpedestal/MPedestalSubtractedEvt.h
===================================================================
--- trunk/MagicSoft/Mars/mpedestal/MPedestalSubtractedEvt.h	(revision 9224)
+++ trunk/MagicSoft/Mars/mpedestal/MPedestalSubtractedEvt.h	(revision 9226)
@@ -20,9 +20,9 @@
 {
 private:
-    MArrayF fSamples;        // list of all samples with pedestal subtracted
-    MArrayS fSamplesRaw;     // list of all samples (raw)
+    MArrayF fSamples;         // list of all samples with pedestal subtracted
+    MArrayS fSamplesRaw;      // list of all samples (raw)
 
-    UInt_t fNumSamples;      // number of samples per pixel
-    UInt_t fNumPixels;       // number of pixels
+    UInt_t fNumSamples;       // number of samples per pixel
+    UInt_t fNumPixels;        // number of pixels
 
 public:
@@ -114,4 +114,6 @@
     }
 
+    void Print(Option_t *o="") const;
+
     Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const { return kTRUE; }
     void   DrawPixelContent(Int_t num) const { }
