| 1 | #ifndef MARS_MCalibrationRelTimeCalc
|
|---|
| 2 | #define MARS_MCalibrationRelTimeCalc
|
|---|
| 3 |
|
|---|
| 4 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 5 | // //
|
|---|
| 6 | // MCalibrationRelTimeCalc //
|
|---|
| 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 | #ifndef MARS_MBadPixelsPix
|
|---|
| 18 | #include "MBadPixelsPix.h"
|
|---|
| 19 | #endif
|
|---|
| 20 |
|
|---|
| 21 | #ifndef MARS_MCalibrationRelTimeCam
|
|---|
| 22 | #include "MCalibrationRelTimeCam.h"
|
|---|
| 23 | #endif
|
|---|
| 24 |
|
|---|
| 25 | class MCalibrationRelTimePix;
|
|---|
| 26 | class MCalibrationRelTimeCam;
|
|---|
| 27 | class MGeomCam;
|
|---|
| 28 | class MBadPixelsCam;
|
|---|
| 29 | class MBadPixelsPix;
|
|---|
| 30 | class MCalibrationRelTimeCalc : public MTask
|
|---|
| 31 | {
|
|---|
| 32 | private:
|
|---|
| 33 |
|
|---|
| 34 | static const Float_t fgRelTimeRelErrLimit; //! Default for fRelTimeRelErrLimit (now set to: 1.)
|
|---|
| 35 |
|
|---|
| 36 | // Variables
|
|---|
| 37 | Float_t fRelTimeRelErrLimit; // Limit acceptance rel. error mean (in abs. numbers)
|
|---|
| 38 | Byte_t fFlags; // Bit-field for the flags
|
|---|
| 39 |
|
|---|
| 40 | // Pointers
|
|---|
| 41 | MBadPixelsCam *fBadPixels; // Bad Pixels
|
|---|
| 42 | MCalibrationRelTimeCam *fCam; // Calibrated RelTimes of all pixels
|
|---|
| 43 | MGeomCam *fGeom; //! Camera geometry
|
|---|
| 44 |
|
|---|
| 45 | // enums
|
|---|
| 46 | enum { kHiLoGainCalibration };
|
|---|
| 47 |
|
|---|
| 48 | // functions
|
|---|
| 49 | Bool_t FinalizeRelTimes ( MCalibrationRelTimePix &cal, MBadPixelsPix &bad );
|
|---|
| 50 | void FinalizeBadPixels ();
|
|---|
| 51 | void FinalizeUnsuitablePixels();
|
|---|
| 52 |
|
|---|
| 53 | void PrintUncalibrated( MBadPixelsPix::UncalibratedType_t typ, const char *text) const;
|
|---|
| 54 |
|
|---|
| 55 | Int_t PreProcess (MParList *pList);
|
|---|
| 56 | Bool_t ReInit (MParList *pList);
|
|---|
| 57 | Int_t Process ();
|
|---|
| 58 | Int_t PostProcess();
|
|---|
| 59 |
|
|---|
| 60 | public:
|
|---|
| 61 |
|
|---|
| 62 | MCalibrationRelTimeCalc(const char *name=NULL, const char *title=NULL);
|
|---|
| 63 |
|
|---|
| 64 | void Clear(const Option_t *o="");
|
|---|
| 65 |
|
|---|
| 66 | void SetRelTimeRelErrLimit ( const Float_t f=fgRelTimeRelErrLimit ) { fRelTimeRelErrLimit = f; }
|
|---|
| 67 |
|
|---|
| 68 | void SkipHiLoGainCalibration ( const Bool_t b=kTRUE )
|
|---|
| 69 | { b ? CLRBIT(fFlags, kHiLoGainCalibration) : SETBIT(fFlags, kHiLoGainCalibration); }
|
|---|
| 70 |
|
|---|
| 71 | ClassDef(MCalibrationRelTimeCalc, 1) // Task finalizing the relative time Calibration
|
|---|
| 72 | };
|
|---|
| 73 |
|
|---|
| 74 | #endif
|
|---|