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 |
|
---|
16 | class MGeomCam;
|
---|
17 | class MHCalibrationRelTimeCam : public MHCalibrationCam
|
---|
18 | {
|
---|
19 |
|
---|
20 | private:
|
---|
21 |
|
---|
22 | static const Float_t fgNumHiGainSaturationLimit; //! The default for fNumHiGainSaturationLimit (now at: 0.25)
|
---|
23 | static const UInt_t fgReferencePixel; //! Default for fReferencePixel (now set to: 1)
|
---|
24 | static const Int_t fgRelTimeNbins; //! Default number of bins (now set to: 900 )
|
---|
25 | static const Axis_t fgRelTimeFirst; //! Default lower histogram limit (now set to: -13.5 )
|
---|
26 | static const Axis_t fgRelTimeLast; //! Default upper histogram limit (now set to: 13.5 )
|
---|
27 |
|
---|
28 | MArrayD fSumareahi ; //!
|
---|
29 | MArrayD fSumarealo ; //!
|
---|
30 | MArrayD fSumsectorhi; //!
|
---|
31 | MArrayD fSumsectorlo; //!
|
---|
32 | MArrayI fNumareahi ; //!
|
---|
33 | MArrayI fNumarealo ; //!
|
---|
34 | MArrayI fNumsectorhi; //!
|
---|
35 | MArrayI fNumsectorlo; //!
|
---|
36 |
|
---|
37 | UInt_t fReferencePixel; // The reference pixel for rel. times
|
---|
38 | Int_t fRelTimeNbins; // Number of bins (now set to: 900 )
|
---|
39 | Axis_t fRelTimeFirst; // Lower histogram limit (now set to: -13.5 )
|
---|
40 | Axis_t fRelTimeLast; // Upper histogram limit (now set to: 13.5 )
|
---|
41 |
|
---|
42 | Bool_t ReInitHists(MParList *pList);
|
---|
43 | Bool_t FillHists(const MParContainer *par, const Stat_t w=1);
|
---|
44 | Bool_t FinalizeHists();
|
---|
45 | void FinalizeBadPixels();
|
---|
46 |
|
---|
47 | public:
|
---|
48 |
|
---|
49 | MHCalibrationRelTimeCam(const char *name=NULL, const char *title=NULL);
|
---|
50 | ~MHCalibrationRelTimeCam() {}
|
---|
51 |
|
---|
52 | UInt_t GetReferencePixel() const { return fReferencePixel; }
|
---|
53 |
|
---|
54 | // Setters
|
---|
55 | void SetReferencePixel( const UInt_t i=fgReferencePixel) { fReferencePixel = i; }
|
---|
56 | void SetRelTimeNbins ( const Int_t i=fgRelTimeNbins ) { fRelTimeNbins = i; }
|
---|
57 | void SetRelTimeFirst ( const Axis_t f=fgRelTimeFirst ) { fRelTimeFirst = f; }
|
---|
58 | void SetRelTimeLast ( const Axis_t f=fgRelTimeLast ) { fRelTimeLast = f; }
|
---|
59 |
|
---|
60 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
---|
61 | void DrawPixelContent(Int_t idx) const;
|
---|
62 |
|
---|
63 | ClassDef(MHCalibrationRelTimeCam, 1) // Histogram class for Relative Time Camera Calibration
|
---|
64 | };
|
---|
65 |
|
---|
66 | #endif
|
---|
67 |
|
---|