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

Last change on this file since 3636 was 3636, checked in by gaug, 21 years ago
*** empty log message ***
File size: 3.2 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// Holds the histogrammed arrival times,
31// derives from MHGausEvents, perform Fourier analysis
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// Initializes:
60// - fPixId to -1
61//
62// Executes:
63// - MHGausEvents::Clear()
64//
65MHCalibrationRelTimePix::MHCalibrationRelTimePix(const char *name, const char *title)
66{
67
68 fName = name ? name : "MHCalibrationRelTimePix";
69 fTitle = title ? title : "Histogrammed Calibration Relative Arrival Time events";
70
71 SetNbins ( fgRelTimeNbins );
72 SetFirst ( fgRelTimeFirst );
73 SetLast ( fgRelTimeLast );
74
75 // Create a large number of bins, later we will rebin
76 fHGausHist.SetName("HCalibrationRelTime");
77 fHGausHist.SetTitle("Distribution of Relative Arrival Times Pixel ");
78 fHGausHist.SetXTitle("FADC Slice");
79 fHGausHist.SetYTitle("Nr. of events");
80
81 Clear();
82
83}
84
85// --------------------------------------------------------------------------
86//
87// Sets:
88// - fPixId to -1
89//
90// Executes:
91// - MHGausEvents::Clear()
92//
93void MHCalibrationRelTimePix::Clear(Option_t *o)
94{
95
96 fPixId = -1;
97
98 MHGausEvents::Clear();
99 return;
100}
101
102
103// --------------------------------------------------------------------------
104//
105// Empty function to overload MHGausEvents::Reset()
106//
107void MHCalibrationRelTimePix::Reset()
108{
109}
110
111
Note: See TracBrowser for help on using the repository browser.