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

Last change on this file since 3355 was 3355, checked in by gaug, 21 years ago
*** empty log message ***
File size: 3.0 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// Performs all the necessary fits to extract the mean number of summed FADC slices
30//
31//////////////////////////////////////////////////////////////////////////////
32#include "MHCalibrationChargeHiGainPix.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(MHCalibrationChargeHiGainPix);
48
49using namespace std;
50
51const Int_t MHCalibrationChargeHiGainPix::fgChargeNbins = 2000;
52const Axis_t MHCalibrationChargeHiGainPix::fgChargeFirst = -0.5;
53const Axis_t MHCalibrationChargeHiGainPix::fgChargeLast = 1999.5;
54const Int_t MHCalibrationChargeHiGainPix::fgAbsTimeNbins = 20;
55const Axis_t MHCalibrationChargeHiGainPix::fgAbsTimeFirst = -0.5;
56const Axis_t MHCalibrationChargeHiGainPix::fgAbsTimeLast = 19.5;
57// --------------------------------------------------------------------------
58//
59// Default Constructor.
60//
61MHCalibrationChargeHiGainPix::MHCalibrationChargeHiGainPix(const char *name, const char *title)
62{
63
64 fName = name ? name : "MHCalibrationChargeHiGainPix";
65 fTitle = title ? title : "Fill the FADC sums of the HiGainPix events and perform the fits Pixel ";
66
67 SetChargeNbins();
68 SetChargeFirst();
69 SetChargeLast();
70
71 SetAbsTimeNbins();
72 SetAbsTimeFirst();
73 SetAbsTimeLast();
74
75 fHGausHist.SetName("HCalibrationChargeHiGainPix");
76 fHGausHist.SetTitle("Distribution of Summed Hi Gain FADC slices Pixel ");
77
78 fHAbsTime.SetName("HAbsTimeHiGainPix");
79 fHAbsTime.SetTitle("Distribution of Absolute Arrival Times Hi Gain Pixel ");
80}
81
82void MHCalibrationChargeHiGainPix::Draw(const Option_t *opt)
83{
84
85 TString option(opt);
86 option.ToLower();
87
88 Int_t win = 1;
89
90 TVirtualPad *oldpad = gPad ? gPad : MH::MakeDefCanvas(this,600, 600);
91 TVirtualPad *pad = NULL;
92
93 oldpad->SetBorderMode(0);
94
95 pad->SetTicks();
96 pad->SetBorderMode(0);
97
98
99 pad->Divide(1,win);
100 pad->cd(1);
101
102 if (!IsEmpty())
103 pad->SetLogy();
104
105 MHGausEvents::Draw(opt);
106
107}
108
109
110
Note: See TracBrowser for help on using the repository browser.