1 | #ifndef MARS_MExtractSignal
|
---|
2 | #define MARS_MExtractSignal
|
---|
3 |
|
---|
4 | /////////////////////////////////////////////////////////////////////////////
|
---|
5 | // //
|
---|
6 | // MExtractSignal //
|
---|
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 MExtractedSignalCam;
|
---|
22 |
|
---|
23 | class MExtractSignal : public MTask
|
---|
24 | {
|
---|
25 | private:
|
---|
26 |
|
---|
27 | MPedestalCam *fPedestals; // Pedestals of all pixels in the camera
|
---|
28 | MExtractedSignalCam *fSignals; // Extracted signal of all pixels in the camera
|
---|
29 |
|
---|
30 | MRawEvtData *fRawEvt; // raw event data (time slices)
|
---|
31 | MRawRunHeader *fRunHeader; // RunHeader information
|
---|
32 |
|
---|
33 | Byte_t fFirst;
|
---|
34 | Byte_t fLoGainFirst;
|
---|
35 |
|
---|
36 | Byte_t fNumHiGainSamples;
|
---|
37 | Byte_t fNumLoGainSamples;
|
---|
38 |
|
---|
39 | Float_t fSqrtHiGainSamples;
|
---|
40 | Float_t fSqrtLoGainSamples;
|
---|
41 |
|
---|
42 | Byte_t fSaturationLimit;
|
---|
43 |
|
---|
44 | Bool_t ReInit(MParList *pList);
|
---|
45 | Int_t PreProcess(MParList *pList);
|
---|
46 | Int_t Process();
|
---|
47 |
|
---|
48 | public:
|
---|
49 | MExtractSignal(/*const Byte_t first=4, const Byte_t last=9,
|
---|
50 | const Byte_t logainshift=1,*/
|
---|
51 | const char *name=NULL, const char *title=NULL);
|
---|
52 |
|
---|
53 | void SetRange(Byte_t first=4, Byte_t last=9, Byte_t logainshift=1);
|
---|
54 | void SetSaturationLimit(Byte_t lim) { fSaturationLimit = lim; }
|
---|
55 |
|
---|
56 | ClassDef(MExtractSignal, 0) // Task to fill the Extracted Signal Containers from raw data
|
---|
57 | };
|
---|
58 |
|
---|
59 | #endif
|
---|