1 | #ifndef MARS_MHCalibrationTestCam
|
---|
2 | #define MARS_MHCalibrationTestCam
|
---|
3 |
|
---|
4 | #ifndef MARS_MHCalibrationCam
|
---|
5 | #include "MHCalibrationCam.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef ROOT_TArrayF
|
---|
9 | #include <TArrayF.h>
|
---|
10 | #endif
|
---|
11 | #ifndef ROOT_TArrayI
|
---|
12 | #include <TArrayI.h>
|
---|
13 | #endif
|
---|
14 |
|
---|
15 | class MHCalibrationTestCam : public MHCalibrationCam
|
---|
16 | {
|
---|
17 |
|
---|
18 | private:
|
---|
19 |
|
---|
20 | static const Int_t fgTestNbins; // Default for fNBins (now set to: 2000 )
|
---|
21 | static const Axis_t fgTestFirst; // Default for fFirst (now set to: -0.5 )
|
---|
22 | static const Axis_t fgTestLast; // Default for fLast (now set to: 1999.5)
|
---|
23 |
|
---|
24 | Int_t fTestNbins; // Number of bins (now set to: 2000 )
|
---|
25 | Axis_t fTestFirst; // Lower histogram limit (now set to: -0.5 )
|
---|
26 | Axis_t fTestLast; // Upper histogram limit (now set to: 1999.5)
|
---|
27 |
|
---|
28 | TArrayF fMeanMeanPhotPerArea;
|
---|
29 | TArrayF fRmsMeanPhotPerArea ;
|
---|
30 | TArrayF fMeanSigmaPhotPerArea;
|
---|
31 | TArrayF fRmsSigmaPhotPerArea ;
|
---|
32 |
|
---|
33 | Bool_t ReInitHists(MParList *pList);
|
---|
34 | Bool_t FillHists(const MParContainer *par, const Stat_t w=1);
|
---|
35 | Bool_t FinalizeHists();
|
---|
36 |
|
---|
37 | public:
|
---|
38 |
|
---|
39 | MHCalibrationTestCam(const char *name=NULL, const char *title=NULL);
|
---|
40 | ~MHCalibrationTestCam() {}
|
---|
41 |
|
---|
42 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
---|
43 | void DrawPixelContent(Int_t idx) const;
|
---|
44 |
|
---|
45 | const Float_t GetMeanMeanPhotPerArea ( const Int_t aidx ) const { return fMeanMeanPhotPerArea [aidx]; }
|
---|
46 | const Float_t GetMeanSigmaPhotPerArea ( const Int_t aidx ) const { return fMeanSigmaPhotPerArea [aidx]; }
|
---|
47 | const Float_t GetRmsMeanPhotPerArea ( const Int_t aidx ) const { return fRmsMeanPhotPerArea [aidx]; }
|
---|
48 | const Float_t GetRmsSigmaPhotPerArea ( const Int_t aidx ) const { return fRmsSigmaPhotPerArea [aidx]; }
|
---|
49 |
|
---|
50 | void CalcAverageSigma();
|
---|
51 |
|
---|
52 | void SetTestNbins ( const Int_t i=fgTestNbins ) { fTestNbins = i; }
|
---|
53 | void SetTestFirst ( const Axis_t f=fgTestFirst ) { fTestFirst = f; }
|
---|
54 | void SetTestLast ( const Axis_t f=fgTestLast ) { fTestLast = f; }
|
---|
55 |
|
---|
56 | ClassDef(MHCalibrationTestCam, 1) // Histogram class for Relative Time Camera Calibration
|
---|
57 | };
|
---|
58 |
|
---|
59 | #endif
|
---|
60 |
|
---|