| 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 to be used for low gain signal calibration. | 
|---|
| 45 |  | 
|---|
| 46 | Float_t fHeaderLow2HiGainFactor; // Ratio of high to low gain, as read from the MMcFadcHeader | 
|---|
| 47 | Float_t fUserLow2HiGainFactor;   // Ratio of high to low gain, as set manually by the user | 
|---|
| 48 |  | 
|---|
| 49 |  | 
|---|
| 50 | Float_t fOuterPixelsLightCollection; | 
|---|
| 51 | // Photon collection efficiency of outer pixels w.r.t. inner ones. | 
|---|
| 52 |  | 
|---|
| 53 | MCalibrateData::SignalType_t fSignalType; | 
|---|
| 54 | // Type defined in MCalibrateData.h. Indicates whether calibration is | 
|---|
| 55 | // made in photons or in photoelectrons! Default: MCalibrateData::kPhe | 
|---|
| 56 |  | 
|---|
| 57 |  | 
|---|
| 58 | public: | 
|---|
| 59 | MMcCalibrationUpdate(const char *name=NULL, const char *title=NULL); | 
|---|
| 60 |  | 
|---|
| 61 | void SetOuterPixelsGainScaling(Bool_t tf) | 
|---|
| 62 | { fOuterPixelsGainScaling = tf; } | 
|---|
| 63 |  | 
|---|
| 64 | void SetUserLow2HiGainFactor(Float_t x) { fUserLow2HiGainFactor = x; } | 
|---|
| 65 |  | 
|---|
| 66 | void SetSignalType (MCalibrateData::SignalType_t x) { fSignalType = x; } | 
|---|
| 67 | MCalibrateData::SignalType_t GetSignalType () const { return fSignalType; } | 
|---|
| 68 |  | 
|---|
| 69 | ClassDef(MMcCalibrationUpdate, 0)   // Task which obtains, for MC files, the pedestal mean and rms, and the calibration factor from ADC counts to photons. | 
|---|
| 70 | }; | 
|---|
| 71 |  | 
|---|
| 72 | #endif | 
|---|
| 73 |  | 
|---|
| 74 |  | 
|---|
| 75 |  | 
|---|
| 76 |  | 
|---|
| 77 |  | 
|---|
| 78 |  | 
|---|