source: trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.h@ 4326

Last change on this file since 4326 was 4326, checked in by gaug, 20 years ago
*** empty log message ***
File size: 2.7 KB
Line 
1#ifndef MARS_MHCalibrationChargeCam
2#define MARS_MHCalibrationChargeCam
3
4#ifndef MARS_MHCalibrationCam
5#include "MHCalibrationCam.h"
6#endif
7
8#ifndef ROOT_TArrayF
9#include "TArrayF.h"
10#endif
11
12class TH2D;
13class MRawEvtData;
14class MExtractedSignalCam;
15class MCalibrationChargePix;
16class MHCalibrationChargePix;
17class MHCalibrationChargeCam : public MHCalibrationCam
18{
19private:
20
21 static const Float_t fgNumHiGainSaturationLimit; //! The default for fNumHiGainSaturationLimit (now at: 0.01)
22 static const Float_t fgNumLoGainSaturationLimit; //! The default for fNumLoGainSaturationLimit (now at: 0.005)
23 static const Float_t fgTimeLowerLimit; //! Default for fTimeLowerLimit (now set to: 1.)
24 static const Float_t fgTimeUpperLimit; //! Default for fTimeUpperLimit (now set to: 2.)
25 static const Int_t gkNumRefColours;
26
27 TArrayF gkHiGainInnerRefLines;
28 TArrayF gkHiGainOuterRefLines;
29 TArrayF gkLoGainInnerRefLines;
30 TArrayF gkLoGainOuterRefLines;
31
32 Float_t fTimeLowerLimit; // Limit dist. to first signal slice (in units of FADC slices)
33 Float_t fTimeUpperLimit; // Limit dist. to last signal slice (in units of FADC slices)
34 Byte_t fFirstHiGain; // First used slice High Gain
35 Byte_t fLastHiGain; // Last used slice High Gain
36 Byte_t fFirstLoGain; // First used slice Low Gain
37 Byte_t fLastLoGain; // Last used slice Low Gain
38
39 MRawEvtData *fRawEvt; //! Raw event data
40
41 Bool_t SetupHists(const MParList *pList);
42 Bool_t ReInitHists(MParList *pList);
43 Bool_t FillHists(const MParContainer *par, const Stat_t w=1);
44
45 void FinalizeAbsTimes (MHCalibrationChargePix &hist, MCalibrationChargePix &pix, MBadPixelsPix &bad,
46 Byte_t first, Byte_t last);
47 Bool_t FinalizeHists();
48 void FinalizeBadPixels();
49
50 void DrawDataCheckPixel(MHCalibrationChargePix &pix, const TArrayF &refline);
51 void DisplayRefLines(const TH2D *hist, const TArrayF &refline) const;
52
53public:
54
55 MHCalibrationChargeCam(const char *name=NULL, const char *title=NULL);
56 ~MHCalibrationChargeCam() {}
57
58 TObject *Clone(const char *) const;
59
60 void SetTimeLowerLimit ( const Float_t f=fgTimeLowerLimit ) { fTimeLowerLimit = f; }
61 void SetTimeUpperLimit ( const Float_t f=fgTimeUpperLimit ) { fTimeUpperLimit = f; }
62
63 Bool_t GetPixelContent ( Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
64 void DrawPixelContent( Int_t num ) const;
65
66 // Draw
67 void Draw(const Option_t *opt);
68
69 ClassDef(MHCalibrationChargeCam, 1) // Histogram class for Charge Camera Calibration
70};
71
72#endif
73
74
75
76
77
78
79
80
81
Note: See TracBrowser for help on using the repository browser.