source: trunk/MagicSoft/Mars/mhcalib/MHCalibrationRelTimeCam.h@ 5609

Last change on this file since 5609 was 5609, checked in by gaug, 20 years ago
*** empty log message ***
File size: 2.7 KB
Line 
1#ifndef MARS_MHCalibrationRelTimeCam
2#define MARS_MHCalibrationRelTimeCam
3
4#ifndef MARS_MHCalibrationCam
5#include "MHCalibrationCam.h"
6#endif
7
8#ifndef MARS_MArrayI
9#include "MArrayI.h"
10#endif
11
12#ifndef MARS_MArrayD
13#include "MArrayD.h"
14#endif
15
16class TH1F;
17class MGeomCam;
18class MHCalibrationRelTimeCam : public MHCalibrationCam
19{
20
21private:
22
23 static const Float_t fgNumHiGainSaturationLimit; //! The default for fNumHiGainSaturationLimit (now at: 0.25)
24 static const UInt_t fgReferencePixel; //! Default for fReferencePixel (now set to: 1)
25 static const Int_t fgNbins; //! Default number of bins (now set to: 900 )
26 static const Axis_t fgFirst; //! Default lower histogram limit (now set to: -13.5 )
27 static const Axis_t fgLast; //! Default upper histogram limit (now set to: 13.5 )
28
29 static const TString gsHistName; //! Default Histogram names
30 static const TString gsHistTitle; //! Default Histogram titles
31 static const TString gsHistXTitle; //! Default Histogram x-axis titles
32 static const TString gsHistYTitle; //! Default Histogram y-axis titles
33
34 MArrayD fSumareahi ; //
35 MArrayD fSumarealo ; //
36 MArrayD fSumsectorhi; //
37 MArrayD fSumsectorlo; //
38 MArrayI fNumareahi ; //
39 MArrayI fNumarealo ; //
40 MArrayI fNumsectorhi; //
41 MArrayI fNumsectorlo; //
42
43 UInt_t fReferencePixel; // The reference pixel for rel. times
44
45 Bool_t ReInitHists(MParList *pList);
46 Bool_t FillHists(const MParContainer *par, const Stat_t w=1);
47 Bool_t FinalizeHists();
48 void FinalizeBadPixels();
49
50 void CheckOverflow( MHCalibrationPix &pix);
51 void DrawDataCheckPixel(MHCalibrationPix &pix, const Float_t refline);
52
53public:
54
55 MHCalibrationRelTimeCam(const char *name=NULL, const char *title=NULL);
56 ~MHCalibrationRelTimeCam() {}
57
58 UInt_t GetReferencePixel() const { return fReferencePixel; }
59
60 // Clone
61 TObject *Clone(const char *name="") const;
62
63 // Setters
64 void SetReferencePixel( const UInt_t i=fgReferencePixel) { fReferencePixel = i; }
65
66 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
67 void DrawPixelContent(Int_t idx) const;
68
69 // Draw
70 void Draw(const Option_t *opt);
71
72 ClassDef(MHCalibrationRelTimeCam, 1) // Histogram class for Relative Time Camera Calibration
73};
74
75#endif
Note: See TracBrowser for help on using the repository browser.