Index: trunk/MagicSoft/MarsOctober/mrootformat/BaseLinkDef.h
===================================================================
--- trunk/MagicSoft/MarsOctober/mrootformat/BaseLinkDef.h	(revision 447)
+++ trunk/MagicSoft/MarsOctober/mrootformat/BaseLinkDef.h	(revision 452)
@@ -7,4 +7,7 @@
 #pragma link C++ class MRawPixel;
 
+#pragma link C++ class MPixPedest;
+#pragma link C++ class MPedest;
+
 
 #endif
Index: trunk/MagicSoft/MarsOctober/mrootformat/MPedest.cc
===================================================================
--- trunk/MagicSoft/MarsOctober/mrootformat/MPedest.cc	(revision 452)
+++ trunk/MagicSoft/MarsOctober/mrootformat/MPedest.cc	(revision 452)
@@ -0,0 +1,70 @@
+#include "MPedest.h"
+
+#include <iostream.h>
+
+ClassImp(MPedest) 
+
+MPedest::MPedest( Int_t iPix ) 
+{
+  //  default destructor 
+
+  fName  = "MPedest" ;
+  fTitle = "Container for Pedestals" ;
+
+
+  fNumPix  = iPix  ;   
+  fHighPed = new MPixPedest[fNumPix] ; 
+  fLowPed  = new MPixPedest[fNumPix] ; 
+  
+} 
+
+MPedest::~MPedest() 
+{
+  //  default destructor 
+  
+  delete fHighPed ; 
+  delete fLowPed ; 
+  
+} 
+
+void MPedest::SetAllHigh( Int_t iPix, Float_t mean, Float_t errMean, Float_t sig, Float_t errSig ) { 
+  //   set the value of one pixel 
+
+  fHighPed[iPix].SetMean(mean) ; 
+  fHighPed[iPix].SetErrMean(errMean) ; 
+  fHighPed[iPix].SetSigma(sig); 
+  fHighPed[iPix].SetErrSigma(errSig) ; 
+} 
+
+void MPedest::SetAllLow( Int_t iPix, Float_t mean, Float_t errMean, Float_t sig, Float_t errSig ) { 
+  //   set the value of one pixel 
+
+  fLowPed[iPix].SetMean(mean) ; 
+  fLowPed[iPix].SetErrMean(errMean) ; 
+  fLowPed[iPix].SetSigma(sig); 
+  fLowPed[iPix].SetErrSigma(errSig) ; 
+} 
+
+
+
+void MPedest::Print() 
+{ 
+  //   information about the content on screen
+
+  cout << " content of Pedestal " << endl ; 
+  cout << " HIGH gain " << endl ; 
+   
+  for ( Int_t i=0; i< fNumPix; i++ ) { 
+    cout << " Pixel: " << i << " High" ; 
+    fHighPed[i].Print() ; 
+  } 
+
+  cout << " LOW gain " << endl ; 
+   
+  for ( Int_t i=0; i< fNumPix; i++ ) { 
+    cout << " Pixel: " << i << " High" ; 
+    fLowPed[i].Print() ; 
+  } 
+   
+} 
+
Index: trunk/MagicSoft/MarsOctober/mrootformat/MPedest.h
===================================================================
--- trunk/MagicSoft/MarsOctober/mrootformat/MPedest.h	(revision 452)
+++ trunk/MagicSoft/MarsOctober/mrootformat/MPedest.h	(revision 452)
@@ -0,0 +1,32 @@
+#ifndef MPEDEST_H
+#define MPEDEST_H
+
+#include "TObject.h"
+
+#include "Magic.h"
+#include "MPixPedest.h"
+#include "MParContainer.h"
+
+
+class MPedest : public MParContainer
+{
+private:
+  Int_t       fNumPix ;        // number of pixels  
+  MPixPedest  *fHighPed ;     // an array with the data for all pixels of the high  gain
+  MPixPedest  *fLowPed ;      // an array with the data for all pixels of the low gain
+
+public:
+
+  MPedest( Int_t iPix = 577 ) ; 
+
+  ~MPedest() ; 
+  
+  void SetAllHigh ( Int_t iPix, Float_t mean, Float_t errMean, Float_t sig, Float_t errSig ) ; 
+  void SetAllLow  ( Int_t iPix, Float_t mean, Float_t errMean, Float_t sig, Float_t errSig ) ; 
+
+  void Print() ; 
+   
+  ClassDef(MPedest, 1)
+};				// end of class definition of MRawPixel 
+
+#endif
Index: trunk/MagicSoft/MarsOctober/mrootformat/MPixPedest.cc
===================================================================
--- trunk/MagicSoft/MarsOctober/mrootformat/MPixPedest.cc	(revision 452)
+++ trunk/MagicSoft/MarsOctober/mrootformat/MPixPedest.cc	(revision 452)
@@ -0,0 +1,35 @@
+#include "MPixPedest.h"
+
+#include <iostream.h>
+
+
+ClassImp(MPixPedest) 
+
+
+MPixPedest::MPixPedest() 
+{
+  //   default constructor
+  //
+  
+  fMean    = 0. ; 
+  fErrMean = 0. ; 
+
+  fSig     = 0. ; 
+  fErrSig  = 0. ; 
+} 
+
+
+MPixPedest::~MPixPedest() 
+{
+  //  default constructor 
+
+} 
+
+void MPixPedest::Print() 
+{ 
+  //   information about the content on screen
+
+  cout << " MPixPedest:  Mean:" << fMean << " +- " << fErrMean 
+            << "        Sigma: " << fSig << " +- " << fErrSig 
+       << endl ;   
+} 
Index: trunk/MagicSoft/MarsOctober/mrootformat/MPixPedest.h
===================================================================
--- trunk/MagicSoft/MarsOctober/mrootformat/MPixPedest.h	(revision 452)
+++ trunk/MagicSoft/MarsOctober/mrootformat/MPixPedest.h	(revision 452)
@@ -0,0 +1,73 @@
+#ifndef MPIXPEDEST_H
+#define MPIXPEDEST_H
+
+#include "Magic.h"
+
+#include "TObject.h"
+
+class MPixPedest : public TObject
+{
+private:
+  
+  Float_t   fMean ;           //     the mean value of the pedestal
+  Float_t   fErrMean ;        //     the error of the mean value
+  
+  Float_t   fSig ;            //     the sigma (Width) of the pedestal
+  Float_t   fErrSig ;         //     the error of sigma value
+
+public:
+  MPixPedest() ; 
+
+  ~MPixPedest() ; 
+  
+  void Print() ; 
+
+  // 
+  //   Setter and Getter
+  //
+
+  void SetMean( Float_t  x ) 
+    { 
+      fMean = x ; 
+    } 
+
+  void SetErrMean( Float_t  x ) 
+    { 
+      fErrMean = x ; 
+    } 
+
+  void SetSigma( Float_t  x ) 
+    { 
+      fSig = x ; 
+    } 
+
+   void SetErrSigma( Float_t  x ) 
+    { 
+      fErrSig = x ; 
+    } 
+
+ 
+   Float_t GetMean () 
+     { 
+       return ( fMean ) ; 
+     } 
+
+   Float_t GetErrMean () 
+     { 
+       return ( fErrMean ) ; 
+     } 
+
+   Float_t GetSigma () 
+     { 
+       return !( fSig )  ; 
+     } 
+  
+   Float_t GetErrSigma() 
+     { 
+       return ( fErrSig ) ; 
+     } 
+   
+  ClassDef(MPixPedest, 1)
+};				// end of class definition of MRawPixel 
+
+#endif
Index: trunk/MagicSoft/MarsOctober/mrootformat/Makefile
===================================================================
--- trunk/MagicSoft/MarsOctober/mrootformat/Makefile	(revision 447)
+++ trunk/MagicSoft/MarsOctober/mrootformat/Makefile	(revision 452)
@@ -54,5 +54,7 @@
 
 SRCFILES = MRawPixel.cc \
-	   MRawEvt.cc
+	   MRawEvt.cc \
+	   MPixPedest.cc \
+	   MPedest.cc 
 
 SRCS    = $(SRCFILES)
