Index: trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc
===================================================================
--- trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc	(revision 8342)
+++ trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc	(revision 8343)
@@ -1,4 +1,4 @@
 /* ======================================================================== *\
-! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.28 2007-03-01 18:21:08 tbretz Exp $
+! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.29 2007-03-01 21:16:55 tbretz Exp $
 ! --------------------------------------------------------------------------
 !
@@ -310,5 +310,5 @@
   const Int_t samples = fRunHeader->GetNumSamples();
   SetBinning(samples, -0.5, samples-0.5);
-  
+
   if (fHiGainArray->GetSize()==0)
   {
@@ -443,14 +443,12 @@
 	continue;
 
-      const Float_t time = (Float_t)maxpos;
-
-      (*this)[i].FillHist(time);
+      (*this)[i].FillHist(maxpos);
         
       const Int_t aidx   = (*fGeom)[i].GetAidx();
       const Int_t sector = (*fGeom)[i].GetSector();
 
-      fSumhiarea[aidx]      += time;
-      fSumhisector[sector]  += time;
-      
+      fSumhiarea[aidx]      += maxpos;
+      fSumhisector[sector]  += maxpos;
+
       fAverageAreaNum[aidx]++;
       fAverageSectorNum[sector]++;
Index: trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.cc
===================================================================
--- trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.cc	(revision 8342)
+++ trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.cc	(revision 8343)
@@ -1,4 +1,4 @@
 /* ======================================================================== *\
-! $Name: not supported by cvs2svn $:$Id: MPedCalcFromLoGain.cc,v 1.35 2007-02-03 20:03:35 tbretz Exp $
+! $Name: not supported by cvs2svn $:$Id: MPedCalcFromLoGain.cc,v 1.36 2007-03-01 21:20:41 tbretz Exp $
 ! --------------------------------------------------------------------------
 !
@@ -357,5 +357,7 @@
 Int_t MPedCalcFromLoGain::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
 {
-    Bool_t rc=kFALSE;
+    Int_t rc=MExtractPedestal::ReadEnv(env, prefix, print);
+    if (rc==kERROR)
+        return kERROR;
 
     // find resource for pedestal update
