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

Last change on this file since 5998 was 5864, 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 static const Float_t fgProbLimit; //! The default for fProbLimit (now set to: 0.0)
29
30 static const TString gsHistName; //! Default Histogram names
31 static const TString gsHistTitle; //! Default Histogram titles
32 static const TString gsHistXTitle; //! Default Histogram x-axis titles
33 static const TString gsHistYTitle; //! Default Histogram y-axis titles
34
35 MArrayD fSumareahi ; //
36 MArrayD fSumarealo ; //
37 MArrayD fSumsectorhi; //
38 MArrayD fSumsectorlo; //
39 MArrayI fNumareahi ; //
40 MArrayI fNumarealo ; //
41 MArrayI fNumsectorhi; //
42 MArrayI fNumsectorlo; //
43
44 UInt_t fReferencePixel; // The reference pixel for rel. times
45
46 Bool_t ReInitHists(MParList *pList);
47 Bool_t FillHists(const MParContainer *par, const Stat_t w=1);
48 Bool_t FinalizeHists();
49 void FinalizeBadPixels();
50
51 void CheckOverflow( MHCalibrationPix &pix);
52 void DrawDataCheckPixel(MHCalibrationPix &pix, const Float_t refline);
53
54public:
55
56 MHCalibrationRelTimeCam(const char *name=NULL, const char *title=NULL);
57 ~MHCalibrationRelTimeCam() {}
58
59 UInt_t GetReferencePixel() const { return fReferencePixel; }
60
61 // Clone
62 TObject *Clone(const char *name="") const;
63
64 // Setters
65 void SetReferencePixel( const UInt_t i=fgReferencePixel) { fReferencePixel = i; }
66
67 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
68 void DrawPixelContent(Int_t idx) const;
69
70 // Draw
71 void Draw(const Option_t *opt);
72
73 ClassDef(MHCalibrationRelTimeCam, 1) // Histogram class for Relative Time Camera Calibration
74};
75
76#endif
Note: See TracBrowser for help on using the repository browser.