1 | #ifndef MARS_MHCalibrationHiLoCam
|
---|
2 | #define MARS_MHCalibrationHiLoCam
|
---|
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 TH1F;
|
---|
17 |
|
---|
18 | class MGeomCam;
|
---|
19 | class MRawEvtData;
|
---|
20 | class MHCalibrationHiLoCam : public MHCalibrationCam
|
---|
21 | {
|
---|
22 |
|
---|
23 | private:
|
---|
24 |
|
---|
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 | static const Byte_t fgLowerLim; //! Default for fLowerLimt (now set to: 200)
|
---|
36 | static const Byte_t fgUpperLim; //! Default for fUpperLimt (now set to: 252)
|
---|
37 |
|
---|
38 | Byte_t fLowerLim; // Lower allowed FADC value limit for max. slicey
|
---|
39 | Byte_t fUpperLim; // Upper allowed FADC value limit for max. slicey
|
---|
40 |
|
---|
41 | MArrayD fSumarea ; //
|
---|
42 | MArrayD fSumsector; //
|
---|
43 | MArrayI fNumarea ; //
|
---|
44 | MArrayI fNumsector; //
|
---|
45 |
|
---|
46 | MRawEvtData *fRawEvt; //! Raw event data
|
---|
47 |
|
---|
48 | Bool_t SetupHists(const MParList *pList);
|
---|
49 | Bool_t ReInitHists(MParList *pList);
|
---|
50 | Bool_t FillHists(const MParContainer *par, const Stat_t w=1);
|
---|
51 | Bool_t FinalizeHists();
|
---|
52 | void FinalizeBadPixels();
|
---|
53 |
|
---|
54 | void CheckOverflow( MHCalibrationPix &pix);
|
---|
55 |
|
---|
56 | public:
|
---|
57 |
|
---|
58 | MHCalibrationHiLoCam(const char *name=NULL, const char *title=NULL);
|
---|
59 | ~MHCalibrationHiLoCam() {}
|
---|
60 |
|
---|
61 | // Clone
|
---|
62 | TObject *Clone(const char *name="") const;
|
---|
63 |
|
---|
64 | Byte_t GetLowerLim() const { return fLowerLim; }
|
---|
65 | Byte_t GetUpperLim() const { return fUpperLim; }
|
---|
66 |
|
---|
67 | void SetLowerLim( const UInt_t i=fgLowerLim) { fLowerLim = i; }
|
---|
68 | void SetUpperLim( const UInt_t i=fgUpperLim) { fUpperLim = i; }
|
---|
69 |
|
---|
70 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
---|
71 | void DrawPixelContent(Int_t idx) const;
|
---|
72 |
|
---|
73 | ClassDef(MHCalibrationHiLoCam, 1) // Histogram class for High Gain vs. Low Gain Calibration
|
---|
74 | };
|
---|
75 |
|
---|
76 | #endif
|
---|