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

Last change on this file since 3636 was 3636, checked in by gaug, 20 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// Store the histogrammed Hi Gain summed FADC slices and the arrival times
30//
31//////////////////////////////////////////////////////////////////////////////
32#include "MHCalibrationChargeLoGainPix.h"
33
34#include <TH1.h>
35#include <TPad.h>
36#include <TVirtualPad.h>
37#include <TCanvas.h>
38
39#include "MLog.h"
40#include "MLogManip.h"
41
42#include "MParList.h"
43
44#include "MExtractedSignalCam.h"
45
46
47ClassImp(MHCalibrationChargeLoGainPix);
48
49using namespace std;
50
51const Int_t MHCalibrationChargeLoGainPix::fgChargeNbins = 200;
52const Axis_t MHCalibrationChargeLoGainPix::fgChargeFirst = -0.5;
53const Axis_t MHCalibrationChargeLoGainPix::fgChargeLast = 199.5;
54const Int_t MHCalibrationChargeLoGainPix::fgAbsTimeNbins = 15;
55const Axis_t MHCalibrationChargeLoGainPix::fgAbsTimeFirst = -0.5;
56const Axis_t MHCalibrationChargeLoGainPix::fgAbsTimeLast = 14.5;
57// --------------------------------------------------------------------------
58//
59// Default Constructor.
60//
61// Sets:
62// - the default number for fNbins (fgChargeNbins)
63// - the default number for fFirst (fgChargeFirst)
64// - the default number for fLast (fgChargeLast)
65// - the default number for fAbsTimeNbins (fgAbstTimeNbins)
66// - the default number for fAbsTimeFirst (fgAbsTimeFirst)
67// - the default number for fAbsTimeLast (fgAbsTimeLast)
68//
69// - the default name of the fHGausHist ("HCalibrationChargeLoGainPix")
70// - the default title of the fHGausHist ("Distribution of Summed Lo Gain FADC slices Pixel ")
71//
72// - the default name of the fHAbsTime ("HAbsTimeLoGainPix")
73// - the default title of the fHAbsTime ("Distribution of Absolute Arrival Times Lo Gain Pixel ")
74//
75MHCalibrationChargeLoGainPix::MHCalibrationChargeLoGainPix(const char *name, const char *title)
76{
77
78 fName = name ? name : "MHCalibrationChargeLoGainPix";
79 fTitle = title ? title : "Fill the FADC sums of the Low Gain events and perform the fits Pixel ";
80
81 SetNbins ( fgChargeNbins );
82 SetFirst ( fgChargeFirst );
83 SetLast ( fgChargeLast );
84
85 SetAbsTimeNbins();
86 SetAbsTimeFirst();
87 SetAbsTimeLast();
88
89 fHGausHist.SetName ("HCalibrationChargeLoGainPix");
90 fHGausHist.SetTitle("Distribution of Summed Lo Gain FADC slices Pixel ");
91
92 fHAbsTime.SetName ("HAbsTimeLoGainPix");
93 fHAbsTime.SetTitle("Distribution of Absolute Arrival Times Lo Gain Pixel ");
94}
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
Note: See TracBrowser for help on using the repository browser.