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 | static const Byte_t fgSaturationLimit;
|
---|
27 | static const Byte_t fgFirst;
|
---|
28 | static const Byte_t fgLast;
|
---|
29 |
|
---|
30 | MPedestalCam *fPedestals; // Pedestals of all pixels in the camera
|
---|
31 | MExtractedSignalCam *fSignals; // Extracted signal of all pixels in the camera
|
---|
32 |
|
---|
33 | MRawEvtData *fRawEvt; // raw event data (time slices)
|
---|
34 | MRawRunHeader *fRunHeader; // RunHeader information
|
---|
35 |
|
---|
36 | Byte_t fHiGainFirst;
|
---|
37 | Byte_t fLoGainFirst;
|
---|
38 |
|
---|
39 | Byte_t fNumHiGainSamples;
|
---|
40 | Byte_t fNumLoGainSamples;
|
---|
41 |
|
---|
42 | Float_t fSqrtHiGainSamples;
|
---|
43 | Float_t fSqrtLoGainSamples;
|
---|
44 |
|
---|
45 | Byte_t fSaturationLimit;
|
---|
46 |
|
---|
47 | void FindSignal(Byte_t *ptr, Int_t size, Int_t &sum, Byte_t &sat/*, Byte_t* &mid*/) const;
|
---|
48 |
|
---|
49 | Int_t PreProcess(MParList *pList);
|
---|
50 | Int_t Process();
|
---|
51 | void StreamPrimitive(ofstream &out) const;
|
---|
52 |
|
---|
53 | public:
|
---|
54 | MExtractSignal(const char *name=NULL, const char *title=NULL);
|
---|
55 |
|
---|
56 | void SetRange(Byte_t hifirst=fgFirst, Byte_t hilast=fgLast, Byte_t lofirst=fgFirst, Byte_t lolast=fgLast);
|
---|
57 | void SetSaturationLimit(Byte_t lim) { fSaturationLimit = lim; }
|
---|
58 |
|
---|
59 | ClassDef(MExtractSignal, 0) // Task to fill the Extracted Signal Containers from raw data
|
---|
60 | };
|
---|
61 |
|
---|
62 | #endif
|
---|