1 | #ifndef MARS_MCalibCalcFromPast
|
---|
2 | #define MARS_MCalibCalcFromPast
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MParList;
|
---|
9 | class MGeomCam;
|
---|
10 | class MRawRunHeader;
|
---|
11 | class MPedCalcFromLoGain;
|
---|
12 | class MCalibrationChargeCalc;
|
---|
13 | class MCalibrationRelTimeCalc;
|
---|
14 | class MCalibrateData;
|
---|
15 | class MCalibrationIntensityChargeCam;
|
---|
16 | class MCalibrationIntensityBlindCam;
|
---|
17 | class MCalibrationIntensityQECam;
|
---|
18 | class MCalibrationIntensityRelTimeCam;
|
---|
19 | class MBadPixelsIntensityCam;
|
---|
20 |
|
---|
21 | class MCalibCalcFromPast : public MTask
|
---|
22 | {
|
---|
23 | private:
|
---|
24 |
|
---|
25 | static const UInt_t fgNumEventsDump; //! Default for fNumEventsDump
|
---|
26 |
|
---|
27 | MGeomCam *fGeom; //! Camera Geometry
|
---|
28 | MParList *fParList; //! Parameter List
|
---|
29 | MRawRunHeader *fRunHeader; //! Run header storing the run number
|
---|
30 | MCalibrationIntensityChargeCam *fIntensCharge; //! Intensity Charge Cam (to be created)
|
---|
31 | MCalibrationIntensityBlindCam *fIntensBlind; //! Intensity Blind Cam (to be created)
|
---|
32 | MCalibrationIntensityQECam *fIntensQE; //! Intensity QE Cam (to be created)
|
---|
33 | MCalibrationIntensityRelTimeCam *fIntensRelTime; //! Intensity Rel. Time Cam (to be created)
|
---|
34 | MBadPixelsIntensityCam *fIntensBad; //! Intensity Bad Pixels Cam (to be created)
|
---|
35 |
|
---|
36 | MCalibrationChargeCalc *fChargeCalc; //! Charge Calibration Task
|
---|
37 | MCalibrationRelTimeCalc *fRelTimeCalc; //! Rel. Times Calibratio Task
|
---|
38 | MCalibrateData *fCalibrate; //! Data Calibration Task
|
---|
39 |
|
---|
40 | UInt_t fNumEventsDump; // Number of event after which the MCalibrationCams gets updated
|
---|
41 | UInt_t fNumEvents; //! Event counter only for calibration events
|
---|
42 | UInt_t fNumCam; //! Number of currently used Calibration Cam
|
---|
43 |
|
---|
44 | Int_t PreProcess(MParList *pList);
|
---|
45 | Int_t Process();
|
---|
46 | Int_t PostProcess();
|
---|
47 |
|
---|
48 | Bool_t ReInitialize();
|
---|
49 | Bool_t Finalize(const char* name);
|
---|
50 |
|
---|
51 | public:
|
---|
52 |
|
---|
53 | MCalibCalcFromPast(const char *name=NULL, const char *title=NULL);
|
---|
54 | ~MCalibCalcFromPast() {}
|
---|
55 |
|
---|
56 | UInt_t GetNumEventsDump() const { return fNumEventsDump; }
|
---|
57 |
|
---|
58 | void SetNumEventsDump( const UInt_t i=fgNumEventsDump ) { fNumEventsDump = i; }
|
---|
59 |
|
---|
60 | void SetCalibrate ( MCalibrateData *c ) { fCalibrate = c; }
|
---|
61 | void SetChargeCalc ( MCalibrationChargeCalc *c ) { fChargeCalc = c; }
|
---|
62 | void SetRelTimeCalc ( MCalibrationRelTimeCalc *c ) { fRelTimeCalc = c; }
|
---|
63 |
|
---|
64 | ClassDef(MCalibCalcFromPast, 1) // Task to steer the processing of interlace calibration events
|
---|
65 | };
|
---|
66 |
|
---|
67 | #endif
|
---|
68 |
|
---|