1 | #ifndef MARS_MMcCalibrationUpdate
|
---|
2 | #define MARS_MMcCalibrationUpdate
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef MARS_MCalibrateData
|
---|
9 | #include "MCalibrateData.h"
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | class MCalibrationChargeCam;
|
---|
13 | class MCalibrationQECam;
|
---|
14 | class MPedPhotCam;
|
---|
15 | class MGeomCam;
|
---|
16 | class MMcFadcHeader;
|
---|
17 | class MExtractedSignalCam;
|
---|
18 |
|
---|
19 | #include "MCalibrateData.h"
|
---|
20 |
|
---|
21 | class MMcCalibrationUpdate : public MTask
|
---|
22 | {
|
---|
23 | private:
|
---|
24 | Bool_t CheckRunType(MParList *pList) const;
|
---|
25 | Int_t PreProcess(MParList *pList);
|
---|
26 | Int_t Process();
|
---|
27 | Bool_t ReInit(MParList *pList);
|
---|
28 |
|
---|
29 | MCalibrationChargeCam *fCalCam;
|
---|
30 | MCalibrationQECam *fQECam;
|
---|
31 | MPedPhotCam *fPedPhotCam;
|
---|
32 | MGeomCam *fGeom;
|
---|
33 | MMcFadcHeader *fHeaderFadc;
|
---|
34 | MExtractedSignalCam *fSignalCam;
|
---|
35 |
|
---|
36 | Float_t fADC2PhElInner; // Conversion factor from ADC counts to photo-electrons
|
---|
37 | Float_t fADC2PhElOuter; // for inner and outer pixels.
|
---|
38 |
|
---|
39 | Bool_t fFillCalibrationCam;
|
---|
40 | Bool_t fOuterPixelsGainScaling;
|
---|
41 |
|
---|
42 | Float_t fAmplitude; // FADC parameters from camera simulation (see camera manual)
|
---|
43 | Float_t fAmplitudeOuter; // to be read from the MMcFadcHeader.
|
---|
44 | Float_t fConversionHiLo; // Ratio of high to low gain.
|
---|
45 |
|
---|
46 | Float_t fOuterPixelsLightCollection;
|
---|
47 | // Photon collection efficiency of outer pixels w.r.t. inner ones.
|
---|
48 |
|
---|
49 | MCalibrateData::SignalType_t fSignalType;
|
---|
50 | // Type defined in MCalibrateData.h. Indicates whether calibration is
|
---|
51 | // made in photons or in photoelectrons! Default: MCalibrateData::kPhe
|
---|
52 |
|
---|
53 |
|
---|
54 | public:
|
---|
55 | MMcCalibrationUpdate(const char *name=NULL, const char *title=NULL);
|
---|
56 |
|
---|
57 | void SetOuterPixelsGainScaling(Bool_t tf)
|
---|
58 | { fOuterPixelsGainScaling = tf; }
|
---|
59 |
|
---|
60 | void SetSignalType (MCalibrateData::SignalType_t x) { fSignalType = x; }
|
---|
61 | MCalibrateData::SignalType_t GetSignalType () const { return fSignalType; }
|
---|
62 |
|
---|
63 | ClassDef(MMcCalibrationUpdate, 0) // Task which obtains, for MC files, the pedestal mean and rms, and the calibration factor from ADC counts to photons.
|
---|
64 | };
|
---|
65 |
|
---|
66 | #endif
|
---|
67 |
|
---|
68 |
|
---|
69 |
|
---|
70 |
|
---|
71 |
|
---|
72 |
|
---|