| 1 | /* ======================================================================== *\
|
|---|
| 2 | !
|
|---|
| 3 | ! *
|
|---|
| 4 | ! * This file is part of MARS, the MAGIC Analysis and Reconstruction
|
|---|
| 5 | ! * Software. It is distributed to you in the hope that it can be a useful
|
|---|
| 6 | ! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
|
|---|
| 7 | ! * It is distributed WITHOUT ANY WARRANTY.
|
|---|
| 8 | ! *
|
|---|
| 9 | ! * Permission to use, copy, modify and distribute this software and its
|
|---|
| 10 | ! * documentation for any purpose is hereby granted without fee,
|
|---|
| 11 | ! * provided that the above copyright notice appear in all copies and
|
|---|
| 12 | ! * that both that copyright notice and this permission notice appear
|
|---|
| 13 | ! * in supporting documentation. It is provided "as is" without express
|
|---|
| 14 | ! * or implied warranty.
|
|---|
| 15 | ! *
|
|---|
| 16 | !
|
|---|
| 17 | !
|
|---|
| 18 | ! Author(s): Markus Gaug 05/2004 <mailto:markus@ifae.es>
|
|---|
| 19 | !
|
|---|
| 20 | ! Copyright: MAGIC Software Development, 2000-2004
|
|---|
| 21 | !
|
|---|
| 22 | !
|
|---|
| 23 | \* ======================================================================== */
|
|---|
| 24 | //////////////////////////////////////////////////////////////////////////////
|
|---|
| 25 | //
|
|---|
| 26 | // MHCalibrationTestTimePix
|
|---|
| 27 | //
|
|---|
| 28 | // Histogram class for the charge calibration.
|
|---|
| 29 | // Stores and fits the charges and stores the location of the maximum FADC
|
|---|
| 30 | // slice. TestTimes are taken from MExtractedSignalPix.
|
|---|
| 31 | //
|
|---|
| 32 | //////////////////////////////////////////////////////////////////////////////
|
|---|
| 33 | #include "MHCalibrationTestTimePix.h"
|
|---|
| 34 |
|
|---|
| 35 | #include "MLog.h"
|
|---|
| 36 | #include "MLogManip.h"
|
|---|
| 37 |
|
|---|
| 38 | ClassImp(MHCalibrationTestTimePix);
|
|---|
| 39 |
|
|---|
| 40 | using namespace std;
|
|---|
| 41 |
|
|---|
| 42 | const Int_t MHCalibrationTestTimePix::fgChargeNbins = 600;
|
|---|
| 43 | const Axis_t MHCalibrationTestTimePix::fgChargeFirst = -0.5;
|
|---|
| 44 | const Axis_t MHCalibrationTestTimePix::fgChargeLast = 29.5;
|
|---|
| 45 | // --------------------------------------------------------------------------
|
|---|
| 46 | //
|
|---|
| 47 | // Default Constructor.
|
|---|
| 48 | //
|
|---|
| 49 | // Sets:
|
|---|
| 50 | // - the default number for fNbins (fgChargeNbins)
|
|---|
| 51 | // - the default number for fFirst (fgChargeFirst)
|
|---|
| 52 | // - the default number for fLast (fgChargeLast)
|
|---|
| 53 | //
|
|---|
| 54 | // - the default name of the fHGausHist ("HCalibrationTestTime")
|
|---|
| 55 | // - the default title of the fHGausHist ("Distribution of calibrated FADC slices Pixel ")
|
|---|
| 56 | // - the default x-axis title for fHGausHist ("Sum FADC Slices")
|
|---|
| 57 | // - the default y-axis title for fHGausHist ("Nr. of events")
|
|---|
| 58 | //
|
|---|
| 59 | // Calls:
|
|---|
| 60 | // - Clear();
|
|---|
| 61 | //
|
|---|
| 62 | MHCalibrationTestTimePix::MHCalibrationTestTimePix(const char *name, const char *title)
|
|---|
| 63 | {
|
|---|
| 64 |
|
|---|
| 65 | fName = name ? name : "MHCalibrationTestTimePix";
|
|---|
| 66 | fTitle = title ? title : "Statistics of the calibrated FADC sums of calibration events";
|
|---|
| 67 |
|
|---|
| 68 | SetNbins ( fgChargeNbins );
|
|---|
| 69 | SetFirst ( fgChargeFirst );
|
|---|
| 70 | SetLast ( fgChargeLast );
|
|---|
| 71 |
|
|---|
| 72 | fHGausHist.SetName("HCalibrationTestTime");
|
|---|
| 73 | fHGausHist.SetTitle("Distribution of calibrated Arrival Times Pixel");
|
|---|
| 74 | fHGausHist.SetXTitle("Arrival Time [FADC units]");
|
|---|
| 75 | fHGausHist.SetYTitle("Nr. of events");
|
|---|
| 76 |
|
|---|
| 77 | }
|
|---|
| 78 |
|
|---|