Index: trunk/MagicSoft/Mars/manalysis/MCT1Pedestals.cc
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MCT1Pedestals.cc	(revision 654)
+++ trunk/MagicSoft/Mars/manalysis/MCT1Pedestals.cc	(revision 654)
@@ -0,0 +1,53 @@
+/////////////////////////////////////////////////////////////////////////////
+//                                                                         //
+// MCT1Pedestals                                                           //
+//                                                                         //
+/////////////////////////////////////////////////////////////////////////////
+#include "MCT1Pedestals.h"
+
+#include <fstream.h>
+
+#include "MLog.h"
+
+ClassImp(MCT1Pedestals)
+
+MCT1Pedestals::MCT1Pedestals(const char *name, const char *title)
+{
+    *fName  = name  ? name  : "MCT1Pedestals";
+    *fTitle = title ? title : "Storage container for CT1 Pedestals";
+
+    //
+    // set the pedestals to default values
+    //
+    for (Int_t i = 0; i<127; i++ )
+        fPedest[i] = 1.5;
+}
+
+void MCT1Pedestals::AsciiRead (ifstream &fin)
+{
+    *fLog << "MCT1Pedestals::AsciiRead: Reading Pedestals..." << endl;
+
+    Int_t   dummyI;
+    Float_t dummyF;
+
+    //
+    // skip the next 4 values
+    //
+    fin >> dummyF;
+    fin >> dummyF;
+    fin >> dummyF;
+    fin >> dummyF;
+
+    //
+    //    read in the next 127 numbers as the pedestals
+    //
+    for (Int_t i = 0; i<127; i++)
+    {
+        fin >> dummyF;
+
+        if (dummyF > 0.0)
+            fPedest[i] = dummyF;
+    }
+
+    fin >> dummyI;
+}
Index: trunk/MagicSoft/Mars/manalysis/MCT1Pedestals.h
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MCT1Pedestals.h	(revision 654)
+++ trunk/MagicSoft/Mars/manalysis/MCT1Pedestals.h	(revision 654)
@@ -0,0 +1,24 @@
+#ifndef MCT1PEDESTALS_H
+#define MCT1PEDESTALS_H
+
+#ifndef MPARCONTAINER_H
+#include "MParContainer.h"
+#endif
+
+class MCT1Pedestals : public MParContainer
+{
+private:
+    Float_t fPedest[127]; //!
+
+public:
+    MCT1Pedestals(const char *name=NULL, const char *title=NULL);
+
+    Float_t &operator[](int i) { return fPedest[i]; }
+
+    void AsciiRead (ifstream &fin);
+
+    ClassDef(MCT1Pedestals, 1)	// Storage Container for CT1 Pedestals
+};
+
+#endif
+
Index: trunk/MagicSoft/Mars/manalysis/MCerPhotPix.cc
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MCerPhotPix.cc	(revision 654)
+++ trunk/MagicSoft/Mars/manalysis/MCerPhotPix.cc	(revision 654)
@@ -0,0 +1,34 @@
+#include "MCerPhotPix.h"
+
+#include "MLog.h"
+
+ClassImp(MCerPhotPix)
+
+MCerPhotPix::MCerPhotPix(Int_t pix, Float_t phot, Float_t errphot ) :
+    fPixId(pix), fIsUsed(kTRUE), fIsCore(kFALSE), fPhot(phot), fErrPhot(errphot)
+{
+} 
+
+void MCerPhotPix::SetPixelContent(Int_t pix, Float_t phot, Float_t errphot)
+{
+  fPixId    = pix ; 
+  fIsUsed   = kTRUE ; 
+  fIsUsed   = kFALSE ; 
+  fPhot     = phot ; 
+  fErrPhot  = errphot ; 
+}
+
+void MCerPhotPix::Print(Option_t *)
+{ 
+  //   information about a pixel
+    gLog << "MCerPhotPix: Pixel: "<< fPixId ;
+
+    gLog << (fIsUsed?"    Used ":"  Unused ");
+
+    gLog << (fIsCore?"  Core  ":"        ");
+
+    gLog << "  Nphot= " << fPhot
+        << "  Error(Nphot) = " << fErrPhot
+        << endl ;
+}
+
Index: trunk/MagicSoft/Mars/manalysis/MCerPhotPix.h
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MCerPhotPix.h	(revision 654)
+++ trunk/MagicSoft/Mars/manalysis/MCerPhotPix.h	(revision 654)
@@ -0,0 +1,45 @@
+#ifndef MCERPHOTPIX_H
+#define MCERPHOTPIX_H
+
+#ifndef ROOT_TROOT
+#include <TROOT.h>
+#endif
+
+class MCerPhotPix : public TObject
+{
+ private:
+  
+  Int_t    fPixId     ;  // the pixel Id
+  Bool_t   fIsUsed    ;  // the pixel is used for calculations --> kTRUE
+  Bool_t   fIsCore    ;  // the pixel is a Core pixel          --> kTRUE
+  Float_t  fPhot      ;  // The number of Cerenkov photons
+  Float_t  fErrPhot   ;  // the error of fPhot
+ 
+ public:
+  
+  MCerPhotPix(Int_t pix = -1, Float_t phot=0. , Float_t errphot=0.) ;
+
+  void Print(Option_t *opt = NULL) ;
+             
+  Int_t GetPixId() const        { return fPixId ;    }
+  Float_t GetNumPhotons() const { return fPhot ;     }
+  Float_t GetErrorPhot() const  { return fErrPhot ;  }
+
+  void SetPixelContent(Int_t pix, Float_t phot, Float_t errphot);
+
+  Bool_t IsPixelUsed() const    { return fIsUsed ;   }
+  void   SetPixelUnused()       { fIsUsed = kFALSE ; }
+  void   SetPixelUsed()         { fIsUsed = kTRUE ;  }
+
+  void SetCorePixel()           { fIsCore = kTRUE ;  }
+  Bool_t IsCorePixel() const    { return fIsCore ;   }
+
+  void SetNumPhotons(Float_t f) { fPhot    = f; }
+  void SetErrorPhot(Float_t f)  { fErrPhot = f; }
+  
+  ClassDef(MCerPhotPix, 1)  // Cerenkov Photons class for the pixel
+} ; 
+
+#endif
+
+
Index: trunk/MagicSoft/Mars/manalysis/Makefile
===================================================================
--- trunk/MagicSoft/Mars/manalysis/Makefile	(revision 653)
+++ trunk/MagicSoft/Mars/manalysis/Makefile	(revision 654)
@@ -32,5 +32,7 @@
 
 SRCFILES = MCerPhotEvt.cc \
-	   MReadCT1Ascii.cc
+	   MCerPhotPix.cc \
+	   MCT1Pedestals.cc \
+	   MCT1ReadAscii.cc
 
 SRCS    = $(SRCFILES)
