1 | #ifndef MARS_MCalibrate
|
---|
2 | #define MARS_MCalibrate
|
---|
3 |
|
---|
4 | /////////////////////////////////////////////////////////////////////////////
|
---|
5 | // //
|
---|
6 | // MCalibrate //
|
---|
7 | // //
|
---|
8 | // Integrates the desired ADC time slices of one pixel and apply //
|
---|
9 | // calibration constants //
|
---|
10 | // //
|
---|
11 | /////////////////////////////////////////////////////////////////////////////
|
---|
12 | #ifndef MARS_MTask
|
---|
13 | #include "MTask.h"
|
---|
14 | #endif
|
---|
15 |
|
---|
16 | class MGeomCam;
|
---|
17 | class MBadPixelsCam;
|
---|
18 | class MCalibrationChargeCam;
|
---|
19 | class MCalibrationQECam;
|
---|
20 | class MExtractedSignalCam;
|
---|
21 | class MCerPhotEvt;
|
---|
22 |
|
---|
23 | class MCalibrate : public MTask
|
---|
24 | {
|
---|
25 | private:
|
---|
26 | MGeomCam *fGeomCam; // Camera geometry container
|
---|
27 | MCalibrationChargeCam *fCalibrations; // Calibration constants
|
---|
28 | MCalibrationQECam *fQEs; // Quantum efficiencies
|
---|
29 | MBadPixelsCam *fBadPixels; // Bad Pixels information
|
---|
30 | MExtractedSignalCam *fSignals; // Integrated charge in FADCs counts
|
---|
31 | MCerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation
|
---|
32 |
|
---|
33 | Float_t fConversionHiLo;
|
---|
34 | UShort_t fCalibrationMode;
|
---|
35 |
|
---|
36 | Int_t PreProcess(MParList *pList);
|
---|
37 | Bool_t ReInit(MParList *pList);
|
---|
38 | Int_t Process();
|
---|
39 |
|
---|
40 | public:
|
---|
41 |
|
---|
42 | enum CalibrationMode_t{kNone=0,kFlatCharge=1,kBlindPixel,kFfactor,kPinDiode,kCombined, kDummy};
|
---|
43 | static const CalibrationMode_t kDefault = kBlindPixel;
|
---|
44 |
|
---|
45 | MCalibrate(CalibrationMode_t calmode = kDefault,const char *name=NULL, const char *title=NULL);
|
---|
46 |
|
---|
47 | void SetConversionHiLo(Float_t conv) { fConversionHiLo = conv; };
|
---|
48 | void SetCalibrationMode(CalibrationMode_t calmode=kDefault){ fCalibrationMode=calmode;};
|
---|
49 |
|
---|
50 | ClassDef(MCalibrate, 0) // Task to calculate cerenkov photons using calibration constants
|
---|
51 | };
|
---|
52 |
|
---|
53 |
|
---|
54 | #endif
|
---|