Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 2790)
+++ trunk/MagicSoft/Mars/Changelog	(revision 2791)
@@ -17,4 +17,8 @@
      - declare fit as not valid, if less than 100 events 
        in single photo-electron peak
+
+   * mcalib/MHCalibrationPixel.[h.cc]
+     - new function IsEmpty()
+     - Time fit accepted if ChiSquare less than 30. (instead of 20.)
 
 
Index: trunk/MagicSoft/Mars/mcalib/MHCalibrationBlindPixel.h
===================================================================
--- trunk/MagicSoft/Mars/mcalib/MHCalibrationBlindPixel.h	(revision 2790)
+++ trunk/MagicSoft/Mars/mcalib/MHCalibrationBlindPixel.h	(revision 2791)
@@ -121,4 +121,6 @@
 
   void CutAllEdges();
+
+  TObject *DrawClone(Option_t *option="") const;
   void Draw(Option_t *option="");
 
Index: trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.cc
===================================================================
--- trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.cc	(revision 2790)
+++ trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.cc	(revision 2791)
@@ -79,5 +79,4 @@
 	fChargeLastLoGain(9999.5),
 	fChargeNbinsLoGain(1200),
-        fFitOK(kFALSE),
         fChargeChisquare(-1.),
         fChargeProb(-1.),
@@ -93,4 +92,5 @@
         fTimeUpperFitRangeLoGain(0),
 	fUseLoGain(kFALSE),
+        fFitOK(kFALSE),
 	fOffset(0.),
 	fSlope(0.)
@@ -628,5 +628,5 @@
   fTimeSigma     = fTimeGausFit->GetParameter(2);
 
-  if (fTimeChisquare > 20.)  // Cannot use Probability because Ndf is sometimes < 1
+  if (fTimeChisquare > 30.)  // Cannot use Probability because Ndf is sometimes < 1
     {
       *fLog << warn << "Fit of the Arrival times failed ! " << endl;
@@ -684,5 +684,5 @@
   fTimeSigma     = fTimeGausFit->GetParameter(2);
 
-  if (fTimeChisquare > 20.)  // Cannot use Probability because Ndf is sometimes < 1
+  if (fTimeChisquare > 30.)  // Cannot use Probability because Ndf is sometimes < 1
     {
       *fLog << warn << "Fit of the Arrival times failed ! " << endl;
