Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 5353)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 5354)
@@ -20,4 +20,11 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+ 2004/11/08: Abelardo Moralejo
+   * mpedestal/MPedPhotCalc.cc
+     - In ReInit: removed check of whether file is MC file. Now fSumx
+       and fSumx2 are initialized also for MC files. This is needed to
+       run some parts of the calibration over pedestal and calibration 
+       MC files.
 
  2004/11/06: Abelardo Moralejo
Index: /trunk/MagicSoft/Mars/mpedestal/MPedPhotCalc.cc
===================================================================
--- /trunk/MagicSoft/Mars/mpedestal/MPedPhotCalc.cc	(revision 5353)
+++ /trunk/MagicSoft/Mars/mpedestal/MPedPhotCalc.cc	(revision 5354)
@@ -120,15 +120,4 @@
 Bool_t MPedPhotCalc::ReInit(MParList *pList)
 {
-  const MRawRunHeader *runheader = (MRawRunHeader*)pList->FindObject("MRawRunHeader");
-  if (!runheader)
-  {
-      *fLog << warn << dbginf;
-      *fLog << "Warning - cannot check file type, MRawRunHeader not found." << endl;
-  }
-  else
-      if (runheader->IsMonteCarloRun())
-          return kTRUE;
-  
-
   // Initialize arrays
   if(fSumx.GetSize()==0)
@@ -156,5 +145,4 @@
     for(UInt_t i=0;i<fCerPhot->GetNumPixels();i++)
     {
- 
        const MCerPhotPix &pix = (*fCerPhot)[i];
        const Int_t pixidx = pix.GetPixId();
