source: trunk/MagicSoft/Mars/mcalib/MHCalibrationRelTimePix.cc@ 3639

Last change on this file since 3639 was 3639, checked in by gaug, 20 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// MHCalibrationRelTimePix
28//
29// Histogram class for the relative arrival time calibration.
30// Stores and fits the relative arrival times between pixel fPixId and
31// pixel number 1 (hardware index: 2). Times are taken from MArrivalTimePix
32//
33//////////////////////////////////////////////////////////////////////////////
34#include "MHCalibrationRelTimePix.h"
35
36#include <TH1.h>
37
38ClassImp(MHCalibrationRelTimePix);
39
40using namespace std;
41//
42const Int_t MHCalibrationRelTimePix::fgRelTimeNbins = 900;
43const Axis_t MHCalibrationRelTimePix::fgRelTimeFirst = -13.;
44const Axis_t MHCalibrationRelTimePix::fgRelTimeLast = 13.;
45// --------------------------------------------------------------------------
46//
47// Default Constructor.
48//
49// Sets:
50// - the default number for fNbins (fgRelTimeNbins)
51// - the default number for fFirst (fgRelTimeFirst)
52// - the default number for fLast (fgRelTimeLast)
53//
54// - the default name of the fHGausHist ("HCalibrationRelTime")
55// - the default title of the fHGausHist ("Distribution of Relative Arrival Times Pixel ")
56// - the default x-axis title for fHGausHist ("FADC Slice")
57// - the default y-axis title for fHGausHist ("Nr. of events")
58//
59// Executes:
60// - MHGausEvents::Clear()
61//
62MHCalibrationRelTimePix::MHCalibrationRelTimePix(const char *name, const char *title)
63{
64
65 fName = name ? name : "MHCalibrationRelTimePix";
66 fTitle = title ? title : "Histogrammed Calibration Relative Arrival Time events";
67
68 SetNbins ( fgRelTimeNbins );
69 SetFirst ( fgRelTimeFirst );
70 SetLast ( fgRelTimeLast );
71
72 // Create a large number of bins, later we will rebin
73 fHGausHist.SetName("HCalibrationRelTime");
74 fHGausHist.SetTitle("Distribution of Relative Arrival Times Pixel ");
75 fHGausHist.SetXTitle("FADC Slice");
76 fHGausHist.SetYTitle("Nr. of events");
77
78 Clear();
79
80}
81
82
83// --------------------------------------------------------------------------
84//
85// Empty function to overload MHGausEvents::Reset()
86//
87void MHCalibrationRelTimePix::Reset()
88{
89}
90
91
Note: See TracBrowser for help on using the repository browser.