source: trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.h@ 3979

Last change on this file since 3979 was 3936, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.4 KB
Line 
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
25class MCalibrationRelTimePix;
26class MCalibrationRelTimeCam;
27class MGeomCam;
28class MBadPixelsCam;
29class MBadPixelsPix;
30class MCalibrationRelTimeCalc : public MTask
31{
32private:
33
34 static const Float_t fgRelTimeRelErrLimit; //! Default for fRelTimeRelErrLimit (now set to: 6.)
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 void FinalizeAverageResolution();
50 void FinalizeRelTimes ();
51 void FinalizeBadPixels ();
52 void FinalizeUnsuitablePixels();
53
54 void PrintUncalibrated( MBadPixelsPix::UncalibratedType_t typ, const char *text) const;
55
56 Int_t PreProcess (MParList *pList);
57 Bool_t ReInit (MParList *pList);
58 Int_t Process ();
59 Int_t PostProcess();
60
61public:
62
63 MCalibrationRelTimeCalc(const char *name=NULL, const char *title=NULL);
64
65 void Clear(const Option_t *o="");
66
67 void SetRelTimeRelErrLimit ( const Float_t f=fgRelTimeRelErrLimit ) { fRelTimeRelErrLimit = f; }
68
69 void SkipHiLoGainCalibration ( const Bool_t b=kTRUE )
70 { b ? CLRBIT(fFlags, kHiLoGainCalibration) : SETBIT(fFlags, kHiLoGainCalibration); }
71
72 ClassDef(MCalibrationRelTimeCalc, 1) // Task finalizing the relative time Calibration
73};
74
75#endif
Note: See TracBrowser for help on using the repository browser.