1 | #ifndef MARS_MHCalibrationChargeCam
|
---|
2 | #define MARS_MHCalibrationChargeCam
|
---|
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 TH2D;
|
---|
17 | class MRawEvtData;
|
---|
18 | class MExtractedSignalCam;
|
---|
19 | class MCalibrationChargePix;
|
---|
20 | class MHCalibrationChargePix;
|
---|
21 | class MHCalibrationChargeCam : public MHCalibrationCam
|
---|
22 | {
|
---|
23 | private:
|
---|
24 |
|
---|
25 | static const Int_t fgAverageNbinsHiGain; //! The default for fAverageNbins HiGain (now set to: 3300)
|
---|
26 | static const Int_t fgAverageNbinsLoGain; //! The default for fAverageNbins LoGain (now set to: 1950)
|
---|
27 |
|
---|
28 | static const Float_t fgNumHiGainSaturationLimit; //! The default for fNumHiGainSaturationLimit (now at: 0.01)
|
---|
29 | static const Float_t fgNumLoGainSaturationLimit; //! The default for fNumLoGainSaturationLimit (now at: 0.005)
|
---|
30 | static const Float_t fgTimeLowerLimit; //! Default for fTimeLowerLimit (now set to: 1.)
|
---|
31 | static const Float_t fgTimeUpperLimit; //! Default for fTimeUpperLimit (now set to: 2.)
|
---|
32 |
|
---|
33 | static const Float_t gkHiGainInnerRefLines[7]; //!
|
---|
34 | static const Float_t gkHiGainOuterRefLines[7]; //!
|
---|
35 | static const Float_t gkLoGainInnerRefLines[7]; //!
|
---|
36 | static const Float_t gkLoGainOuterRefLines[7]; //!
|
---|
37 |
|
---|
38 | MArrayD fSumhiarea ; //!
|
---|
39 | MArrayD fSumloarea ; //!
|
---|
40 | MArrayD fTimehiarea ; //!
|
---|
41 | MArrayD fTimeloarea ; //!
|
---|
42 | MArrayD fSumhisector; //!
|
---|
43 | MArrayD fSumlosector; //!
|
---|
44 | MArrayD fTimehisector; //!
|
---|
45 | MArrayD fTimelosector; //!
|
---|
46 |
|
---|
47 | MArrayI fSathiarea ; //!
|
---|
48 | MArrayI fSatloarea ; //!
|
---|
49 | MArrayI fSathisector; //!
|
---|
50 | MArrayI fSatlosector; //!
|
---|
51 |
|
---|
52 | Float_t fTimeLowerLimit; // Limit dist. to first signal slice (in units of FADC slices)
|
---|
53 | Float_t fTimeUpperLimit; // Limit dist. to last signal slice (in units of FADC slices)
|
---|
54 | Byte_t fFirstHiGain; // First used slice High Gain
|
---|
55 | Byte_t fLastHiGain; // Last used slice High Gain
|
---|
56 | Byte_t fFirstLoGain; // First used slice Low Gain
|
---|
57 | Byte_t fLastLoGain; // Last used slice Low Gain
|
---|
58 |
|
---|
59 | MRawEvtData *fRawEvt; //! Raw event data
|
---|
60 |
|
---|
61 | Bool_t SetupHists(const MParList *pList);
|
---|
62 | Bool_t ReInitHists(MParList *pList);
|
---|
63 | Bool_t FillHists(const MParContainer *par, const Stat_t w=1);
|
---|
64 |
|
---|
65 | void FinalizeAbsTimes (MHCalibrationChargePix &hist, MCalibrationChargePix &pix, MBadPixelsPix &bad,
|
---|
66 | Byte_t first, Byte_t last);
|
---|
67 | Bool_t FinalizeHists();
|
---|
68 | void FinalizeBadPixels();
|
---|
69 |
|
---|
70 | void DrawDataCheckPixel(MHCalibrationChargePix &pix, const Float_t refline[]);
|
---|
71 | void DisplayRefLines(const TH2D *hist, const Float_t refline[]) const;
|
---|
72 |
|
---|
73 | public:
|
---|
74 |
|
---|
75 | MHCalibrationChargeCam(const char *name=NULL, const char *title=NULL);
|
---|
76 | ~MHCalibrationChargeCam() {}
|
---|
77 |
|
---|
78 | TObject *Clone(const char *name="") const;
|
---|
79 |
|
---|
80 | void SetTimeLowerLimit ( const Float_t f=fgTimeLowerLimit ) { fTimeLowerLimit = f; }
|
---|
81 | void SetTimeUpperLimit ( const Float_t f=fgTimeUpperLimit ) { fTimeUpperLimit = f; }
|
---|
82 |
|
---|
83 | Bool_t GetPixelContent ( Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
---|
84 | void DrawPixelContent( Int_t num ) const;
|
---|
85 |
|
---|
86 | // Draw
|
---|
87 | void Draw(const Option_t *opt);
|
---|
88 |
|
---|
89 | ClassDef(MHCalibrationChargeCam, 1) // Histogram class for Charge Camera Calibration
|
---|
90 | };
|
---|
91 |
|
---|
92 | #endif
|
---|
93 |
|
---|
94 |
|
---|
95 |
|
---|
96 |
|
---|
97 |
|
---|
98 |
|
---|
99 |
|
---|
100 |
|
---|
101 |
|
---|