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 |
|
---|
38 | ClassImp(MHCalibrationRelTimePix);
|
---|
39 |
|
---|
40 | using namespace std;
|
---|
41 | //
|
---|
42 | const Int_t MHCalibrationRelTimePix::fgRelTimeNbins = 900;
|
---|
43 | const Axis_t MHCalibrationRelTimePix::fgRelTimeFirst = -5.;
|
---|
44 | const Axis_t MHCalibrationRelTimePix::fgRelTimeLast = 5.;
|
---|
45 | const Float_t MHCalibrationRelTimePix::fgFADCSliceWidth = 3.3333;
|
---|
46 | // --------------------------------------------------------------------------
|
---|
47 | //
|
---|
48 | // Default Constructor.
|
---|
49 | //
|
---|
50 | // Sets:
|
---|
51 | // - the default number for fNbins (fgRelTimeNbins)
|
---|
52 | // - the default number for fFirst (fgRelTimeFirst)
|
---|
53 | // - the default number for fLast (fgRelTimeLast)
|
---|
54 | //
|
---|
55 | // - the default name of the fHGausHist ("HCalibrationRelTime")
|
---|
56 | // - the default title of the fHGausHist ("Distribution of Relative Arrival Times Pixel ")
|
---|
57 | // - the default x-axis title for fHGausHist ("FADC Slice")
|
---|
58 | // - the default y-axis title for fHGausHist ("Nr. of events")
|
---|
59 | //
|
---|
60 | // - the default number for fFADCSliceWidth (fgFADCSliceWidth)
|
---|
61 | //
|
---|
62 | MHCalibrationRelTimePix::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 | SetFADCSliceWidth();
|
---|
72 |
|
---|
73 | // Create a large number of bins, later we will rebin
|
---|
74 | fHGausHist.SetName("HCalibrationRelTime");
|
---|
75 | fHGausHist.SetTitle("Distribution of Relative Arrival Times Pixel ");
|
---|
76 | fHGausHist.SetXTitle("FADC Slice");
|
---|
77 | fHGausHist.SetYTitle("Nr. of events");
|
---|
78 |
|
---|
79 | }
|
---|
80 |
|
---|
81 |
|
---|
82 | // --------------------------------------------------------------------------
|
---|
83 | //
|
---|
84 | // Empty function to overload MHGausEvents::Reset()
|
---|
85 | //
|
---|
86 | void MHCalibrationRelTimePix::Reset()
|
---|
87 | {
|
---|
88 | }
|
---|
89 |
|
---|