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

Last change on this file since 4781 was 4602, 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
26 static const Float_t gkHiGainInnerRefLines[7];
27 static const Float_t gkHiGainOuterRefLines[7];
28 static const Float_t gkLoGainInnerRefLines[7];
29 static const Float_t gkLoGainOuterRefLines[7];
30
31 Float_t fTimeLowerLimit; // Limit dist. to first signal slice (in units of FADC slices)
32 Float_t fTimeUpperLimit; // Limit dist. to last signal slice (in units of FADC slices)
33 Byte_t fFirstHiGain; // First used slice High Gain
34 Byte_t fLastHiGain; // Last used slice High Gain
35 Byte_t fFirstLoGain; // First used slice Low Gain
36 Byte_t fLastLoGain; // Last used slice Low Gain
37
38 MRawEvtData *fRawEvt; //! Raw event data
39
40 Bool_t SetupHists(const MParList *pList);
41 Bool_t ReInitHists(MParList *pList);
42 Bool_t FillHists(const MParContainer *par, const Stat_t w=1);
43
44 void FinalizeAbsTimes (MHCalibrationChargePix &hist, MCalibrationChargePix &pix, MBadPixelsPix &bad,
45 Byte_t first, Byte_t last);
46 Bool_t FinalizeHists();
47 void FinalizeBadPixels();
48
49 void DrawDataCheckPixel(MHCalibrationChargePix &pix, const Float_t refline[]);
50 void DisplayRefLines(const TH2D *hist, const Float_t refline[]) const;
51
52public:
53
54 MHCalibrationChargeCam(const char *name=NULL, const char *title=NULL);
55 ~MHCalibrationChargeCam() {}
56
57 TObject *Clone(const char *name="") const;
58
59 void SetTimeLowerLimit ( const Float_t f=fgTimeLowerLimit ) { fTimeLowerLimit = f; }
60 void SetTimeUpperLimit ( const Float_t f=fgTimeUpperLimit ) { fTimeUpperLimit = f; }
61
62 Bool_t GetPixelContent ( Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
63 void DrawPixelContent( Int_t num ) const;
64
65 // Draw
66 void Draw(const Option_t *opt);
67
68 ClassDef(MHCalibrationChargeCam, 1) // Histogram class for Charge Camera Calibration
69};
70
71#endif
72
73
74
75
76
77
78
79
80
Note: See TracBrowser for help on using the repository browser.