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

Last change on this file since 4130 was 4130, checked in by gaug, 20 years ago
*** empty log message ***
File size: 2.5 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 fgRelTimeResolutionLimit; //! Default for fRelTimeResolutionLimit (now set to: 0.75)
35
36 // Variables
37 Float_t fRelTimeResolutionLimit; // Limit acceptance rel. time resolution (in FADC slices)
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 SetRelTimeResolutionLimit ( const Float_t f=fgRelTimeResolutionLimit ) { fRelTimeResolutionLimit = 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.