1 | #ifndef MARS_MMcCalibrationUpdate
|
---|
2 | #define MARS_MMcCalibrationUpdate
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MCalibrationChargeCam;
|
---|
9 | class MCalibrationQECam;
|
---|
10 | class MPedPhotCam;
|
---|
11 | class MGeomCam;
|
---|
12 | class MMcFadcHeader;
|
---|
13 | class MExtractedSignalCam;
|
---|
14 |
|
---|
15 | class MMcCalibrationUpdate : public MTask
|
---|
16 | {
|
---|
17 | private:
|
---|
18 | Bool_t CheckRunType(MParList *pList) const;
|
---|
19 | Int_t PreProcess(MParList *pList);
|
---|
20 | Int_t Process();
|
---|
21 | Bool_t ReInit(MParList *pList);
|
---|
22 |
|
---|
23 | MCalibrationChargeCam *fCalCam;
|
---|
24 | MCalibrationQECam *fQECam;
|
---|
25 | MPedPhotCam *fPedPhotCam;
|
---|
26 | MGeomCam *fGeom;
|
---|
27 | MMcFadcHeader *fHeaderFadc;
|
---|
28 | MExtractedSignalCam *fSignalCam;
|
---|
29 |
|
---|
30 | Float_t fADC2PhInner; // Conversion factor from ADC counts to photo-electrons
|
---|
31 | Float_t fADC2PhOuter; // for inner and outer pixels.
|
---|
32 |
|
---|
33 | Bool_t fFillCalibrationCam;
|
---|
34 | Bool_t fFillQECam;
|
---|
35 | Bool_t fOuterPixelsGainScaling;
|
---|
36 |
|
---|
37 | Float_t fAmplitude; // FADC parameters from camera simulation (see camera manual)
|
---|
38 | Float_t fAmplitudeOuter; // to be read from the MMcFadcHeader.
|
---|
39 | Float_t fConversionHiLo; // Ratio of high to low gain.
|
---|
40 |
|
---|
41 | public:
|
---|
42 | MMcCalibrationUpdate(const char *name=NULL, const char *title=NULL);
|
---|
43 |
|
---|
44 | void SetOuterPixelsGainScaling(Bool_t tf)
|
---|
45 | { fOuterPixelsGainScaling = tf; }
|
---|
46 |
|
---|
47 | ClassDef(MMcCalibrationUpdate, 0) // Task which obtains, for MC files, the pedestal mean and rms, and the calibration factor from ADC counts to photons.
|
---|
48 | };
|
---|
49 |
|
---|
50 | #endif
|
---|
51 |
|
---|
52 |
|
---|
53 |
|
---|
54 |
|
---|
55 |
|
---|
56 |
|
---|