1 | #ifndef MARS_MHCalibrationChargeCam
|
---|
2 | #define MARS_MHCalibrationChargeCam
|
---|
3 |
|
---|
4 | #ifndef ROOT_TObjArray
|
---|
5 | #include <TObjArray.h>
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef MARS_MH
|
---|
9 | #include "MH.h"
|
---|
10 | #endif
|
---|
11 | #ifndef MARS_MCamEvent
|
---|
12 | #include "MCamEvent.h"
|
---|
13 | #endif
|
---|
14 |
|
---|
15 | class MRawEvtData;
|
---|
16 | class MCalibrationChargeCam;
|
---|
17 | class MHCalibrationChargeHiGainPix;
|
---|
18 | class MHCalibrationChargeLoGainPix;
|
---|
19 | class MHCalibrationChargeCam : public MH, public MCamEvent
|
---|
20 | {
|
---|
21 | private:
|
---|
22 |
|
---|
23 | static const Float_t fgNumHiGainSaturationLimit; // The default number of fNumHiGainSaturationLimit
|
---|
24 | static const Float_t fgNumLoGainSaturationLimit; // The default number of fNumLoGainSaturationLimit
|
---|
25 |
|
---|
26 | Float_t fNumHiGainSaturationLimit; // The rel. number of saturated higain FADC slices in the whole run upon which the pixel is called saturated
|
---|
27 | Float_t fNumLoGainSaturationLimit; // The rel. number of saturated logain FADC slices in the whole run upon which the pixel is called saturated
|
---|
28 |
|
---|
29 | TObjArray *fHiGainArray; //-> Array of MHCalibrationChargePix with hists
|
---|
30 | TObjArray *fLoGainArray; //-> Array of MHCalibrationChargePix with hists
|
---|
31 |
|
---|
32 | MCalibrationChargeCam *fCam; //! Class holding the results
|
---|
33 | MRawEvtData *fRawEvt; //! Raw event data (time slices)
|
---|
34 |
|
---|
35 |
|
---|
36 | public:
|
---|
37 |
|
---|
38 | MHCalibrationChargeCam(const char *name=NULL, const char *title=NULL);
|
---|
39 | ~MHCalibrationChargeCam();
|
---|
40 |
|
---|
41 | void SetNumHiGainSaturationLimit( const Float_t lim=fgNumHiGainSaturationLimit) { fNumHiGainSaturationLimit = lim; }
|
---|
42 | void SetNumLoGainSaturationLimit( const Float_t lim=fgNumLoGainSaturationLimit) { fNumLoGainSaturationLimit = lim; }
|
---|
43 |
|
---|
44 | Float_t GetNumHiGainSaturationLimit() const { return fNumHiGainSaturationLimit; }
|
---|
45 | Float_t GetNumLoGainSaturationLimit() const { return fNumLoGainSaturationLimit; }
|
---|
46 |
|
---|
47 |
|
---|
48 | MHCalibrationChargeHiGainPix &operator[](UInt_t i);
|
---|
49 | const MHCalibrationChargeHiGainPix &operator[](UInt_t i) const;
|
---|
50 |
|
---|
51 | MHCalibrationChargeLoGainPix &operator()(UInt_t i);
|
---|
52 | const MHCalibrationChargeLoGainPix &operator()(UInt_t i) const;
|
---|
53 |
|
---|
54 | Bool_t SetupFill(const MParList *pList);
|
---|
55 | Bool_t ReInit ( MParList *pList);
|
---|
56 | Bool_t Fill (const MParContainer *par, const Stat_t w=1);
|
---|
57 | Bool_t Finalize ( );
|
---|
58 |
|
---|
59 | TObject *Clone(const char *) const;
|
---|
60 |
|
---|
61 | Bool_t GetPixelContent ( Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
---|
62 | void DrawPixelContent( Int_t num ) const;
|
---|
63 |
|
---|
64 | ClassDef(MHCalibrationChargeCam, 1) // Container for calibration information of the camera
|
---|
65 | };
|
---|
66 |
|
---|
67 | #endif
|
---|
68 |
|
---|
69 |
|
---|
70 |
|
---|
71 |
|
---|
72 |
|
---|
73 |
|
---|
74 |
|
---|
75 |
|
---|
76 |
|
---|