1 | #ifndef MARS_MCalibrationCalc
|
---|
2 | #define MARS_MCalibrationCalc
|
---|
3 |
|
---|
4 | /////////////////////////////////////////////////////////////////////////////
|
---|
5 | // //
|
---|
6 | // MCalibrationCalc //
|
---|
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 |
|
---|
20 | class MPedestalCam;
|
---|
21 | class MCalibrationCam;
|
---|
22 | class MExtractedSignalCam;
|
---|
23 |
|
---|
24 | class MTime;
|
---|
25 |
|
---|
26 | class MCalibrationCalc : public MTask
|
---|
27 | {
|
---|
28 | private:
|
---|
29 |
|
---|
30 | MPedestalCam *fPedestals; // Pedestals of all pixels in the camera
|
---|
31 | MCalibrationCam *fCalibrations; // Calibration events of all pixels in the camera
|
---|
32 | MExtractedSignalCam *fSignals; // Calibration events of all pixels in the camera
|
---|
33 |
|
---|
34 | MRawEvtData *fRawEvt; // raw event data (time slices)
|
---|
35 | MRawRunHeader *fRunHeader; // RunHeader information
|
---|
36 |
|
---|
37 | MTime *fEvtTime; // Time of the event
|
---|
38 |
|
---|
39 | Int_t fEvents; // Number of events
|
---|
40 | Int_t fHistOverFlow; // Number of events with saturated Low Gain
|
---|
41 | Int_t fCosmics; // Number of events due to supposed cosmics
|
---|
42 |
|
---|
43 | Byte_t fNumHiGainSamples;
|
---|
44 | Byte_t fNumLoGainSamples;
|
---|
45 |
|
---|
46 | Byte_t fFlags; // Flag for the fits used
|
---|
47 |
|
---|
48 |
|
---|
49 | enum { kUseTimeFits, kUseBlindPixelFit, kUsePinDiodeFit };
|
---|
50 |
|
---|
51 | public:
|
---|
52 |
|
---|
53 | enum PulserColor_t { kEGreen, kEBlue, kEUV, kECT1 };
|
---|
54 |
|
---|
55 | private:
|
---|
56 |
|
---|
57 | PulserColor_t fColor;
|
---|
58 |
|
---|
59 | Bool_t ReInit(MParList *pList);
|
---|
60 | Int_t PreProcess(MParList *pList);
|
---|
61 | Int_t Process();
|
---|
62 | Int_t PostProcess();
|
---|
63 |
|
---|
64 | public:
|
---|
65 |
|
---|
66 | MCalibrationCalc(const char *name=NULL, const char *title=NULL);
|
---|
67 |
|
---|
68 | void SetSkipTimeFits(Bool_t b=kTRUE)
|
---|
69 | {b ? CLRBIT(fFlags, kUseTimeFits) : SETBIT(fFlags, kUseTimeFits);}
|
---|
70 | void SetSkipBlindPixelFit(Bool_t b=kTRUE)
|
---|
71 | {b ? CLRBIT(fFlags, kUseBlindPixelFit) : SETBIT(fFlags, kUseBlindPixelFit);}
|
---|
72 | void SetSkipPinDiodeFit(Bool_t b=kTRUE)
|
---|
73 | {b ? CLRBIT(fFlags, kUsePinDiodeFit) : SETBIT(fFlags, kUsePinDiodeFit);}
|
---|
74 |
|
---|
75 | void SetPulserColor(PulserColor_t color) { fColor = color; }
|
---|
76 |
|
---|
77 | ClassDef(MCalibrationCalc, 1) // Task to fill the Calibration Containers from raw data
|
---|
78 | };
|
---|
79 |
|
---|
80 | #endif
|
---|