| 1 | #ifndef MARS_MCalibrationChargeCalc
|
|---|
| 2 | #define MARS_MCalibrationChargeCalc
|
|---|
| 3 |
|
|---|
| 4 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 5 | // //
|
|---|
| 6 | // MCalibrationChargeCalc //
|
|---|
| 7 | // //
|
|---|
| 8 | // Integrates the time slices of the all pixels of a calibration event //
|
|---|
| 9 | // and substract the pedestal value //
|
|---|
| 10 | // //
|
|---|
| 11 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 12 |
|
|---|
| 13 | #ifndef MARS_MTask
|
|---|
| 14 | #include "MTask.h"
|
|---|
| 15 | #endif
|
|---|
| 16 |
|
|---|
| 17 | class MRawEvtData;
|
|---|
| 18 | class MRawRunHeader;
|
|---|
| 19 | class MPedestalCam;
|
|---|
| 20 | class MCalibrationChargePINDiode;
|
|---|
| 21 | class MCalibrationChargeBlindPix;
|
|---|
| 22 | class MCalibrationChargeCam;
|
|---|
| 23 | class MGeomCam;
|
|---|
| 24 | class MExtractedSignalCam;
|
|---|
| 25 | class MBadPixelsCam;
|
|---|
| 26 | class MTime;
|
|---|
| 27 | class MCalibrationChargeCalc : public MTask
|
|---|
| 28 | {
|
|---|
| 29 | private:
|
|---|
| 30 |
|
|---|
| 31 | MPedestalCam *fPedestals; //! Pedestals of all pixels in the camera
|
|---|
| 32 | MCalibrationChargeCam *fCam; // Calibration events of all pixels in the camera
|
|---|
| 33 | MRawEvtData *fRawEvt; //! raw event data (time slices)
|
|---|
| 34 | MRawRunHeader *fRunHeader; //! RunHeader information
|
|---|
| 35 | MGeomCam *fGeom; //! Geometry information
|
|---|
| 36 | MBadPixelsCam *fBadPixels; //! Bad Pixels information
|
|---|
| 37 |
|
|---|
| 38 | MTime *fEvtTime; //! Time of the event
|
|---|
| 39 |
|
|---|
| 40 | MExtractedSignalCam *fSignals; // Extracted signal of all pixels in the camera
|
|---|
| 41 | MCalibrationChargePINDiode *fPINDiode; // Calibration results of the PIN Diode
|
|---|
| 42 | MCalibrationChargeBlindPix *fBlindPixel; // Calibration results of the Blind Pixel
|
|---|
| 43 |
|
|---|
| 44 | Byte_t fNumHiGainSamples;
|
|---|
| 45 | Byte_t fNumLoGainSamples;
|
|---|
| 46 | Float_t fSqrtHiGainSamples;
|
|---|
| 47 |
|
|---|
| 48 | Float_t fConversionHiLo;
|
|---|
| 49 | Int_t fFlags; // Flag for the fits used
|
|---|
| 50 |
|
|---|
| 51 | enum { kUseQualityChecks,
|
|---|
| 52 | kHiLoGainCalibration };
|
|---|
| 53 |
|
|---|
| 54 | Int_t PreProcess(MParList *pList);
|
|---|
| 55 | Bool_t ReInit(MParList *pList);
|
|---|
| 56 | Int_t Process();
|
|---|
| 57 | Int_t PostProcess();
|
|---|
| 58 |
|
|---|
| 59 | public:
|
|---|
| 60 |
|
|---|
| 61 | MCalibrationChargeCalc(const char *name=NULL, const char *title=NULL);
|
|---|
| 62 |
|
|---|
| 63 | void Clear(const Option_t *o="");
|
|---|
| 64 |
|
|---|
| 65 | void SkipQualityChecks(Bool_t b=kTRUE)
|
|---|
| 66 | {b ? CLRBIT(fFlags, kUseQualityChecks) : SETBIT(fFlags, kUseQualityChecks);}
|
|---|
| 67 | void SkipHiLoGainCalibration(Bool_t b=kTRUE)
|
|---|
| 68 | {b ? CLRBIT(fFlags, kHiLoGainCalibration) : SETBIT(fFlags, kHiLoGainCalibration);}
|
|---|
| 69 |
|
|---|
| 70 | ClassDef(MCalibrationChargeCalc, 1) // Task to fill the Calibration Containers from raw data
|
|---|
| 71 | };
|
|---|
| 72 |
|
|---|
| 73 | #endif
|
|---|