Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 3845)
+++ trunk/MagicSoft/Mars/Changelog	(revision 3846)
@@ -20,4 +20,11 @@
 
  2004/04/26: Markus Gaug
+
+   * mcalib/MHCalibrationTestPix.[h,cc]
+   * mcalib/MHCalibrationTestCam.[h,cc]
+   * mcalib/Makefile
+   * mcalib/CalibLinkDef.h
+     - two new histogram classes to perform claibraion checks, will be 
+       especially useful for the data-check.
 
    * mcalib/MCalibrationQEPix.cc
Index: trunk/MagicSoft/Mars/mcalib/CalibLinkDef.h
===================================================================
--- trunk/MagicSoft/Mars/mcalib/CalibLinkDef.h	(revision 3845)
+++ trunk/MagicSoft/Mars/mcalib/CalibLinkDef.h	(revision 3846)
@@ -31,4 +31,6 @@
 #pragma link C++ class MHCalibrationRelTimePix+;
 #pragma link C++ class MHCalibrationRelTimeCam+;
+#pragma link C++ class MHCalibrationTestCam+;
+#pragma link C++ class MHCalibrationTestPix+;
 
 #pragma link C++ class MMcCalibrationCalc++;
Index: trunk/MagicSoft/Mars/mcalib/MHCalibrationTestPix.cc
===================================================================
--- trunk/MagicSoft/Mars/mcalib/MHCalibrationTestPix.cc	(revision 3846)
+++ trunk/MagicSoft/Mars/mcalib/MHCalibrationTestPix.cc	(revision 3846)
@@ -0,0 +1,106 @@
+/* ======================================================================== *\
+!
+! *
+! * This file is part of MARS, the MAGIC Analysis and Reconstruction
+! * Software. It is distributed to you in the hope that it can be a useful
+! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
+! * It is distributed WITHOUT ANY WARRANTY.
+! *
+! * Permission to use, copy, modify and distribute this software and its
+! * documentation for any purpose is hereby granted without fee,
+! * provided that the above copyright notice appear in all copies and
+! * that both that copyright notice and this permission notice appear
+! * in supporting documentation. It is provided "as is" without express
+! * or implied warranty.
+! *
+!
+!
+!   Author(s): Markus Gaug 02/2004 <mailto:markus@ifae.es>
+!
+!   Copyright: MAGIC Software Development, 2000-2004
+!
+!
+\* ======================================================================== */
+//////////////////////////////////////////////////////////////////////////////
+//
+//  MHCalibrationTestPix
+//
+//  Histogram class for the charge calibration. 
+//  Stores and fits the charges and stores the location of the maximum FADC 
+//  slice. Tests are taken from MExtractedSignalPix.
+//
+//////////////////////////////////////////////////////////////////////////////
+#include "MHCalibrationTestPix.h"
+
+#include <TH1.h>
+#include <TF1.h>
+
+#include <TVirtualPad.h>
+#include <TCanvas.h>
+#include <TPad.h>
+#include <TGraph.h>
+
+#include "MH.h"
+
+#include "MLog.h"
+#include "MLogManip.h"
+
+ClassImp(MHCalibrationTestPix);
+
+using namespace std;
+
+const Int_t   MHCalibrationTestPix::fgChargeNbins     = 2000;
+const Axis_t  MHCalibrationTestPix::fgChargeFirst     = -0.5;
+const Axis_t  MHCalibrationTestPix::fgChargeLast      = 1999.5;
+// --------------------------------------------------------------------------
+//
+// Default Constructor. 
+//
+// Sets: 
+// - the default number for fNbins        (fgChargeNbins)
+// - the default number for fFirst        (fgChargeFirst)
+// - the default number for fLast         (fgChargeLast)
+//
+// - the default name of the  fHGausHist ("HCalibrationTest")
+// - the default title of the fHGausHist ("Distribution of calibrated FADC slices Pixel ")
+// - the default x-axis title for fHGausHist ("Sum FADC Slices")
+// - the default y-axis title for fHGausHist ("Nr. of events")
+//
+// Calls:
+// - Clear();
+//
+MHCalibrationTestPix::MHCalibrationTestPix(const char *name, const char *title)
+{ 
+  
+  fName  = name  ? name  : "MHCalibrationTestPix";
+  fTitle = title ? title : "Statistics of the calibrated FADC sums of calibration events";
+
+  SetNbins ( fgChargeNbins );
+  SetFirst ( fgChargeFirst );
+  SetLast  ( fgChargeLast  );
+
+  fHGausHist.SetName("HCalibrationTest");
+  fHGausHist.SetTitle("Distribution of calibrated Summed FADC slices Pixel");  
+  fHGausHist.SetXTitle("Sum FADC Slices");
+  fHGausHist.SetYTitle("Nr. of events");
+
+}
+
+
+// --------------------------------------------------------------------------
+//
+// Empty function to overload MHGausEvents::Reset()
+//
+void MHCalibrationTestPix::Reset()
+{
+}
+
+// --------------------------------------------------------------------------
+//
+// returns fHGausHist.Integral("width")
+//
+const Float_t MHCalibrationTestPix::GetIntegral() const 
+{ 
+   return fHGausHist.Integral("width");  
+}
+
Index: trunk/MagicSoft/Mars/mcalib/MHCalibrationTestPix.h
===================================================================
--- trunk/MagicSoft/Mars/mcalib/MHCalibrationTestPix.h	(revision 3846)
+++ trunk/MagicSoft/Mars/mcalib/MHCalibrationTestPix.h	(revision 3846)
@@ -0,0 +1,30 @@
+#ifndef MARS_MHCalibrationTestPix
+#define MARS_MHCalibrationTestPix
+
+#ifndef MARS_MHGausEvents
+#include "MHGausEvents.h"
+#endif
+
+class TH1F;
+class MHCalibrationTestPix : public MHGausEvents
+{
+
+private:
+
+  static const Int_t   fgChargeNbins;        // Default for fNBins          (now set to: 2000  )
+  static const Axis_t  fgChargeFirst;        // Default for fFirst          (now set to: -0.5  )
+  static const Axis_t  fgChargeLast;         // Default for fLast           (now set to: 1999.5)
+
+public:
+
+  MHCalibrationTestPix(const char *name=NULL, const char *title=NULL);
+  ~MHCalibrationTestPix() {}
+
+  virtual void Reset();  
+  
+  const Float_t  GetIntegral()          const;
+  
+  ClassDef(MHCalibrationTestPix, 1)     // Base Histogram class for Test Pixel Calibration
+};
+
+#endif
Index: trunk/MagicSoft/Mars/mcalib/Makefile
===================================================================
--- trunk/MagicSoft/Mars/mcalib/Makefile	(revision 3845)
+++ trunk/MagicSoft/Mars/mcalib/Makefile	(revision 3846)
@@ -44,5 +44,5 @@
            MCalibrationPix.cc  \
            MCalibrationRelTimeCam.cc \
-           MCalibrationRelTimePix.cc  \
+           MCalibrationRelTimePix.cc \
            MCalibrationQECam.cc \
            MCalibrationQEPix.cc  \
@@ -63,4 +63,6 @@
            MHCalibrationRelTimeCam.cc \
            MHCalibrationRelTimePix.cc \
+           MHCalibrationTestCam.cc \
+           MHCalibrationTestPix.cc  \
 	   MMcCalibrationCalc.cc \
 	   MHGausEvents.cc 
