source: trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeLoGainPix.cc@ 4308

Last change on this file since 4308 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// MHCalibrationChargeLoGainPix
28//
29// Histogram class for the charge Low 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 "MHCalibrationChargeLoGainPix.h"
35
36#include <TH1.h>
37
38ClassImp(MHCalibrationChargeLoGainPix);
39
40using namespace std;
41
42const Int_t MHCalibrationChargeLoGainPix::fgChargeNbins = 400;
43const Axis_t MHCalibrationChargeLoGainPix::fgChargeFirst = -0.5;
44const Axis_t MHCalibrationChargeLoGainPix::fgChargeLast = 399.5;
45const Int_t MHCalibrationChargeLoGainPix::fgAbsTimeNbins = 15;
46const Axis_t MHCalibrationChargeLoGainPix::fgAbsTimeFirst = -0.5;
47const Axis_t MHCalibrationChargeLoGainPix::fgAbsTimeLast = 14.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 ("HCalibrationChargeLoGainPix")
61// - the default title of the fHGausHist ("Distribution of Summed Lo Gain FADC slices Pixel ")
62//
63// - the default name of the fHAbsTime ("HAbsTimeLoGainPix")
64// - the default title of the fHAbsTime ("Distribution of Absolute Arrival Times Lo Gain Pixel ")
65//
66MHCalibrationChargeLoGainPix::MHCalibrationChargeLoGainPix(const char *name, const char *title)
67{
68
69 fName = name ? name : "MHCalibrationChargeLoGainPix";
70 fTitle = title ? title : "Fill the FADC sums of the Low Gain 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 ("HCalibrationChargeLoGainPix");
81 fHGausHist.SetTitle("Distribution of Summed Lo Gain FADC slices Pixel ");
82
83 fHAbsTime.SetName ("HAbsTimeLoGainPix");
84 fHAbsTime.SetTitle("Distribution of Absolute Arrival Times Lo Gain Pixel ");
85}
86
87
88
89
90
91
Note: See TracBrowser for help on using the repository browser.