1 | #ifndef MARS_MCalibrateData
|
---|
2 | #define MARS_MCalibrateData
|
---|
3 |
|
---|
4 | /////////////////////////////////////////////////////////////////////////////
|
---|
5 | // //
|
---|
6 | // MCalibrateData
|
---|
7 | // //
|
---|
8 | // Integrates the desired ADC time slices of one pixel and apply //
|
---|
9 | // calibration constants //
|
---|
10 | // //
|
---|
11 | // Differences between MCalibrateData and MCalibrate :
|
---|
12 | // in MCalibrateData
|
---|
13 | // - in ReInit the MPedPhot container is filled using
|
---|
14 | // - the pedstals/slice from MPedestalCam
|
---|
15 | // - the number of used FADC slices from MExtractedSignalCam
|
---|
16 | // - the photon/ADC conversion factor from MCalibrationCam
|
---|
17 | // //
|
---|
18 | // //
|
---|
19 | /////////////////////////////////////////////////////////////////////////////
|
---|
20 | #ifndef MARS_MTask
|
---|
21 | #include "MTask.h"
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | class MGeomCam;
|
---|
25 | class MBadPixelsCam;
|
---|
26 | class MPedestalCam;
|
---|
27 | class MCalibrationChargeCam;
|
---|
28 | class MExtractedSignalCam;
|
---|
29 |
|
---|
30 | class MPedPhotCam;
|
---|
31 | class MCerPhotEvt;
|
---|
32 |
|
---|
33 | class MCalibrateData : public MTask
|
---|
34 | {
|
---|
35 | private:
|
---|
36 | MGeomCam *fCam;
|
---|
37 | MPedestalCam *fPedestal; // Pedestals/slice [ADC counts]
|
---|
38 | MBadPixelsCam *fBadPixels; // Bad Pixels information
|
---|
39 | MCalibrationChargeCam *fCalibrations; // Calibration constants
|
---|
40 | MExtractedSignalCam *fSignals; // Integrated charge in FADCs counts
|
---|
41 |
|
---|
42 | MPedPhotCam *fPedPhot; // Pedestals/(used slices) [photons]
|
---|
43 | MCerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation
|
---|
44 |
|
---|
45 | Float_t fNumUsedHiGainFADCSlices;
|
---|
46 | Float_t fNumUsedLoGainFADCSlices;
|
---|
47 |
|
---|
48 | Float_t fConversionHiLo;
|
---|
49 | UShort_t fCalibrationMode;
|
---|
50 |
|
---|
51 | Bool_t GetConversionFactor(UInt_t,
|
---|
52 | Float_t &, Float_t &, Float_t &, Float_t &);
|
---|
53 |
|
---|
54 | Int_t PreProcess(MParList *pList);
|
---|
55 | Bool_t ReInit(MParList *pList);
|
---|
56 | Int_t Process();
|
---|
57 |
|
---|
58 | public:
|
---|
59 |
|
---|
60 | enum CalibrationMode_t{kNone=0,kBlindPixel,kFfactor,kPinDiode,kCombined};
|
---|
61 | static const CalibrationMode_t kDefault = kBlindPixel;
|
---|
62 |
|
---|
63 | MCalibrateData(CalibrationMode_t calmode = kDefault,const char *name=NULL, const char *title=NULL);
|
---|
64 |
|
---|
65 | void SetConversionHiLo(Float_t conv) { fConversionHiLo = conv; };
|
---|
66 | void SetCalibrationMode(CalibrationMode_t calmode=kDefault){ fCalibrationMode=calmode;};
|
---|
67 |
|
---|
68 | ClassDef(MCalibrateData, 0) // Task to calculate cerenkov photons using calibration constants
|
---|
69 | };
|
---|
70 |
|
---|
71 |
|
---|
72 | #endif
|
---|
73 |
|
---|
74 |
|
---|
75 |
|
---|
76 |
|
---|
77 |
|
---|
78 |
|
---|
79 |
|
---|
80 |
|
---|
81 |
|
---|