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 MPedestalCam;
|
---|
26 | class MCalibrationChargeCam;
|
---|
27 | class MExtractedSignalCam;
|
---|
28 |
|
---|
29 | class MPedPhotCam;
|
---|
30 | class MCerPhotEvt;
|
---|
31 |
|
---|
32 | class MCalibrateData : public MTask
|
---|
33 | {
|
---|
34 | private:
|
---|
35 | MGeomCam *fCam;
|
---|
36 | MPedestalCam *fPedestal; // Pedestals/slice [ADC counts]
|
---|
37 | MCalibrationCam *fCalibrations; // Calibration constants
|
---|
38 | MExtractedSignalCam *fSignals; // Integrated charge in FADCs counts
|
---|
39 |
|
---|
40 | MPedPhotCam *fPedPhot; // Pedestals/(used slices) [photons]
|
---|
41 | MCerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation
|
---|
42 |
|
---|
43 | Float_t fNumUsedHiGainFADCSlices;
|
---|
44 | Float_t fNumUsedLoGainFADCSlices;
|
---|
45 |
|
---|
46 | Float_t fConversionHiLo;
|
---|
47 | UShort_t fCalibrationMode;
|
---|
48 |
|
---|
49 | Bool_t GetConversionFactor(UInt_t,
|
---|
50 | Float_t &, Float_t &, Float_t &, Float_t &);
|
---|
51 |
|
---|
52 | Int_t PreProcess(MParList *pList);
|
---|
53 | Bool_t ReInit(MParList *pList);
|
---|
54 | Int_t Process();
|
---|
55 |
|
---|
56 | public:
|
---|
57 |
|
---|
58 | enum CalibrationMode_t{kNone=0,kBlindPixel,kFfactor,kPinDiode,kCombined};
|
---|
59 | static const CalibrationMode_t kDefault = kBlindPixel;
|
---|
60 |
|
---|
61 | MCalibrateData(CalibrationMode_t calmode = kDefault,const char *name=NULL, const char *title=NULL);
|
---|
62 |
|
---|
63 | void SetConversionHiLo(Float_t conv) { fConversionHiLo = conv; };
|
---|
64 | void SetCalibrationMode(CalibrationMode_t calmode=kDefault){ fCalibrationMode=calmode;};
|
---|
65 |
|
---|
66 | ClassDef(MCalibrateData, 0) // Task to calculate cerenkov photons using calibration constants
|
---|
67 | };
|
---|
68 |
|
---|
69 |
|
---|
70 | #endif
|
---|
71 |
|
---|
72 |
|
---|
73 |
|
---|
74 |
|
---|
75 |
|
---|
76 |
|
---|
77 |
|
---|
78 |
|
---|
79 |
|
---|