1 | #ifndef MARS_MHCalibrationChargeCam
|
---|
2 | #define MARS_MHCalibrationChargeCam
|
---|
3 |
|
---|
4 | #ifndef MARS_MHCalibrationCam
|
---|
5 | #include "MHCalibrationCam.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MRawEvtData;
|
---|
9 | class MExtractedSignalCam;
|
---|
10 | class MCalibrationChargePix;
|
---|
11 | class MHCalibrationChargePix;
|
---|
12 | class MHCalibrationChargeCam : public MHCalibrationCam
|
---|
13 | {
|
---|
14 | private:
|
---|
15 |
|
---|
16 | static const Float_t fgNumHiGainSaturationLimit; //! The default for fNumHiGainSaturationLimit (now at: 0.01)
|
---|
17 | static const Float_t fgNumLoGainSaturationLimit; //! The default for fNumLoGainSaturationLimit (now at: 0.005)
|
---|
18 | static const Float_t fgTimeLowerLimit; //! Default for fTimeLowerLimit (now set to: 1.)
|
---|
19 | static const Float_t fgTimeUpperLimit; //! Default for fTimeUpperLimit (now set to: 2.)
|
---|
20 |
|
---|
21 | Float_t fTimeLowerLimit; // Limit dist. to first signal slice (in units of FADC slices)
|
---|
22 | Float_t fTimeUpperLimit; // Limit dist. to last signal slice (in units of FADC slices)
|
---|
23 | Byte_t fFirstHiGain; // First used slice High Gain
|
---|
24 | Byte_t fLastHiGain; // Last used slice High Gain
|
---|
25 | Byte_t fFirstLoGain; // First used slice Low Gain
|
---|
26 | Byte_t fLastLoGain; // Last used slice Low Gain
|
---|
27 |
|
---|
28 | MRawEvtData *fRawEvt; //! Raw event data
|
---|
29 |
|
---|
30 | Bool_t SetupHists(const MParList *pList);
|
---|
31 | Bool_t ReInitHists(MParList *pList);
|
---|
32 | Bool_t FillHists(const MParContainer *par, const Stat_t w=1);
|
---|
33 |
|
---|
34 | void FinalizeAbsTimes (MHCalibrationChargePix &hist, MCalibrationChargePix &pix, MBadPixelsPix &bad,
|
---|
35 | Byte_t first, Byte_t last);
|
---|
36 | Bool_t FinalizeHists();
|
---|
37 | void FinalizeBadPixels();
|
---|
38 |
|
---|
39 |
|
---|
40 | public:
|
---|
41 |
|
---|
42 | MHCalibrationChargeCam(const char *name=NULL, const char *title=NULL);
|
---|
43 | ~MHCalibrationChargeCam() {}
|
---|
44 |
|
---|
45 | void SetTimeLowerLimit ( const Float_t f=fgTimeLowerLimit ) { fTimeLowerLimit = f; }
|
---|
46 | void SetTimeUpperLimit ( const Float_t f=fgTimeUpperLimit ) { fTimeUpperLimit = f; }
|
---|
47 |
|
---|
48 | Bool_t GetPixelContent ( Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
---|
49 | void DrawPixelContent( Int_t num ) const;
|
---|
50 |
|
---|
51 | // Draw
|
---|
52 | void Draw(const Option_t *opt);
|
---|
53 |
|
---|
54 | ClassDef(MHCalibrationChargeCam, 1) // Histogram class for Charge Camera Calibration
|
---|
55 | };
|
---|
56 |
|
---|
57 | #endif
|
---|
58 |
|
---|
59 |
|
---|
60 |
|
---|
61 |
|
---|
62 |
|
---|
63 |
|
---|
64 |
|
---|
65 |
|
---|
66 |
|
---|