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

Last change on this file since 3803 was 3721, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.8 KB
Line 
1#ifndef MARS_MHCalibrationChargeCam
2#define MARS_MHCalibrationChargeCam
3
4#ifndef MARS_MHCalibrationCam
5#include "MHCalibrationCam.h"
6#endif
7
8class MRawEvtData;
9class MExtractedSignalCam;
10class MCalibrationChargePix;
11class MHCalibrationChargePix;
12class MHCalibrationChargeCam : public MHCalibrationCam
13{
14private:
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 fNumHiGainSaturationLimit; // Rel. amount sat. higain FADC slices until pixel is called saturated
22 Float_t fNumLoGainSaturationLimit; // Rel. amount sat. logain FADC slices until pixel is called saturated
23 Float_t fTimeLowerLimit; // Limit dist. to first signal slice (in units of FADC slices)
24 Float_t fTimeUpperLimit; // Limit dist. to last signal slice (in units of FADC slices)
25 Byte_t fFirstHiGain; // First used slice High Gain
26 Byte_t fLastHiGain; // Last used slice High Gain
27 Byte_t fFirstLoGain; // First used slice Low Gain
28 Byte_t fLastLoGain; // Last used slice Low Gain
29
30 MRawEvtData *fRawEvt; //! Raw event data
31
32 Bool_t SetupHists(const MParList *pList);
33 Bool_t ReInitHists(MParList *pList);
34 Bool_t FillHists(const MParContainer *par, const Stat_t w=1);
35
36 void FinalizeAbsTimes (MHCalibrationChargePix &hist, MCalibrationChargePix &pix, MBadPixelsPix &bad,
37 Byte_t first, Byte_t last);
38 Bool_t FinalizeHists();
39 void FinalizeBadPixels();
40
41
42 public:
43
44 MHCalibrationChargeCam(const char *name=NULL, const char *title=NULL);
45 ~MHCalibrationChargeCam() {}
46
47 void SetNumLoGainSaturationLimit( const Float_t lim=fgNumLoGainSaturationLimit) { fNumLoGainSaturationLimit = lim; }
48 void SetNumHiGainSaturationLimit( const Float_t lim=fgNumHiGainSaturationLimit) { fNumHiGainSaturationLimit = lim; }
49 void SetTimeLowerLimit ( const Float_t f=fgTimeLowerLimit ) { fTimeLowerLimit = f; }
50 void SetTimeUpperLimit ( const Float_t f=fgTimeUpperLimit ) { fTimeUpperLimit = f; }
51
52 Float_t GetNumHiGainSaturationLimit() const { return fNumHiGainSaturationLimit; }
53 Float_t GetNumLoGainSaturationLimit() const { return fNumLoGainSaturationLimit; }
54
55 Bool_t GetPixelContent ( Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
56 void DrawPixelContent( Int_t num ) const;
57
58 ClassDef(MHCalibrationChargeCam, 1) // Histogram class for Charge Camera Calibration
59};
60
61#endif
62
63
64
65
66
67
68
69
70
Note: See TracBrowser for help on using the repository browser.