source: trunk/MagicSoft/Mars/mhcalib/MHCalibrationTestCam.h@ 5910

Last change on this file since 5910 was 5479, checked in by gaug, 20 years ago
*** empty log message ***
File size: 2.0 KB
Line 
1#ifndef MARS_MHCalibrationTestCam
2#define MARS_MHCalibrationTestCam
3
4#ifndef MARS_MHCalibrationCam
5#include "MHCalibrationCam.h"
6#endif
7
8#ifndef MARS_MArrayF
9#include <MArrayF.h>
10#endif
11#ifndef MARS_MArrayI
12#include <MArrayI.h>
13#endif
14
15class MHCalibrationTestCam : public MHCalibrationCam
16{
17
18private:
19
20 static const Int_t fgNbins; // Default for fNBins (now set to: 2000 )
21 static const Axis_t fgFirst; // Default for fFirst (now set to: -0.5 )
22 static const Axis_t fgLast; // Default for fLast (now set to: 1999.5)
23
24 static const TString gsHistName; //! Default Histogram names
25 static const TString gsHistTitle; //! Default Histogram titles
26 static const TString gsHistXTitle; //! Default Histogram x-axis titles
27 static const TString gsHistYTitle; //! Default Histogram y-axis titles
28
29 MArrayF fMeanMeanPhotPerArea;
30 MArrayF fRmsMeanPhotPerArea ;
31 MArrayF fMeanSigmaPhotPerArea;
32 MArrayF fRmsSigmaPhotPerArea ;
33
34 Bool_t ReInitHists(MParList *pList);
35 Bool_t FillHists(const MParContainer *par, const Stat_t w=1);
36 Bool_t FinalizeHists();
37
38 void InitHiGainArrays(const Int_t npix, const Int_t nareas, const Int_t nsectors);
39
40public:
41
42 MHCalibrationTestCam(const char *name=NULL, const char *title=NULL);
43 ~MHCalibrationTestCam() {}
44
45 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
46 void DrawPixelContent(Int_t idx) const;
47
48 const Float_t GetMeanMeanPhotPerArea ( const Int_t aidx ) const { return fMeanMeanPhotPerArea [aidx]; }
49 const Float_t GetMeanSigmaPhotPerArea ( const Int_t aidx ) const { return fMeanSigmaPhotPerArea [aidx]; }
50 const Float_t GetRmsMeanPhotPerArea ( const Int_t aidx ) const { return fRmsMeanPhotPerArea [aidx]; }
51 const Float_t GetRmsSigmaPhotPerArea ( const Int_t aidx ) const { return fRmsSigmaPhotPerArea [aidx]; }
52
53 void CalcAverageSigma();
54
55 ClassDef(MHCalibrationTestCam, 1) // Histogram class for Relative Time Camera Calibration
56};
57
58#endif
59
Note: See TracBrowser for help on using the repository browser.