source: trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeHiGainPix.cc@ 4237

Last change on this file since 4237 was 4017, checked in by gaug, 21 years ago
*** empty log message ***
File size: 3.3 KB
Line 
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 02/2004 <mailto:markus@ifae.es>
19!
20! Copyright: MAGIC Software Development, 2000-2004
21!
22!
23\* ======================================================================== */
24
25//////////////////////////////////////////////////////////////////////////////
26//
27// MHCalibrationChargeHiGainPix
28//
29// Histogram class for the charge High Gain FADC calibration.
30// Stores and fits the charges and stores the location of the maximum FADC
31// slice. Charges are taken from MExtractedSignalPix.
32//
33//////////////////////////////////////////////////////////////////////////////
34#include "MHCalibrationChargeHiGainPix.h"
35
36#include <TH1.h>
37
38ClassImp(MHCalibrationChargeHiGainPix);
39
40using namespace std;
41
42const Int_t MHCalibrationChargeHiGainPix::fgChargeNbins = 800;
43const Axis_t MHCalibrationChargeHiGainPix::fgChargeFirst = -0.5;
44const Axis_t MHCalibrationChargeHiGainPix::fgChargeLast = 799.5;
45const Int_t MHCalibrationChargeHiGainPix::fgAbsTimeNbins = 20;
46const Axis_t MHCalibrationChargeHiGainPix::fgAbsTimeFirst = -0.5;
47const Axis_t MHCalibrationChargeHiGainPix::fgAbsTimeLast = 19.5;
48// --------------------------------------------------------------------------
49//
50// Default Constructor.
51//
52// Sets:
53// - the default number for fNbins (fgChargeNbins)
54// - the default number for fFirst (fgChargeFirst)
55// - the default number for fLast (fgChargeLast)
56// - the default number for fAbsTimeNbins (fgAbstTimeNbins)
57// - the default number for fAbsTimeFirst (fgAbsTimeFirst)
58// - the default number for fAbsTimeLast (fgAbsTimeLast)
59//
60// - the default name of the fHGausHist ("HCalibrationChargeHiGainPix")
61// - the default title of the fHGausHist ("Distribution of Summed Hi Gain FADC slices Pixel ")
62//
63// - the default name of the fHAbsTime ("HAbsTimeHiGainPix")
64// - the default title of the fHAbsTime ("Distribution of Absolute Arrival Times Hi Gain Pixel ")
65//
66MHCalibrationChargeHiGainPix::MHCalibrationChargeHiGainPix(const char *name, const char *title)
67{
68
69 fName = name ? name : "MHCalibrationChargeHiGainPix";
70 fTitle = title ? title : "Fill the FADC sums of the HiGainPix events and perform the fits Pixel ";
71
72 SetNbins ( fgChargeNbins );
73 SetFirst ( fgChargeFirst );
74 SetLast ( fgChargeLast );
75
76 SetAbsTimeNbins();
77 SetAbsTimeFirst();
78 SetAbsTimeLast();
79
80 fHGausHist.SetName ("HCalibrationChargeHiGainPix");
81 fHGausHist.SetTitle("Distribution of Summed Hi Gain FADC slices Pixel ");
82
83 fHAbsTime.SetName ("HAbsTimeHiGainPix");
84 fHAbsTime.SetTitle("Distribution of Absolute Arrival Times Hi Gain Pixel ");
85}
Note: See TracBrowser for help on using the repository browser.