1 | #ifndef MARS_MExtractSignal2
|
---|
2 | #define MARS_MExtractSignal2
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MRawEvtData;
|
---|
9 | class MRawRunHeader;
|
---|
10 |
|
---|
11 | class MPedestalCam;
|
---|
12 | class MExtractedSignalCam;
|
---|
13 | //class MArrivalTime;
|
---|
14 |
|
---|
15 | class MExtractSignal2 : public MTask
|
---|
16 | {
|
---|
17 | private:
|
---|
18 | static const Byte_t fgSaturationLimit;
|
---|
19 | static const Byte_t fgFirst;
|
---|
20 | static const Byte_t fgLast;
|
---|
21 | static const Byte_t fgWindow;
|
---|
22 |
|
---|
23 | MPedestalCam *fPedestals; // Pedestals of all pixels in the camera
|
---|
24 | MExtractedSignalCam *fSignals; // Extracted signal of all pixels in the camera
|
---|
25 |
|
---|
26 | MRawEvtData *fRawEvt; // raw event data (time slices)
|
---|
27 | MRawRunHeader *fRunHeader; // RunHeader information
|
---|
28 |
|
---|
29 | Byte_t fHiGainFirst; // First hi gain to be used
|
---|
30 | Byte_t fLoGainFirst; // First lo gain to be used
|
---|
31 |
|
---|
32 | Byte_t fNumHiGainSamples; // Number of hi gain to be used
|
---|
33 | Byte_t fNumLoGainSamples; // Number of lo gain to be used
|
---|
34 |
|
---|
35 | Byte_t fWindow; // Number of gains in window
|
---|
36 | Float_t fWindowSqrt; // Sqaure root of number of gains in window
|
---|
37 |
|
---|
38 | Byte_t fSaturationLimit;
|
---|
39 |
|
---|
40 | void FindSignal(Byte_t *ptr, Byte_t size, Int_t &max, Int_t &sat) const;
|
---|
41 |
|
---|
42 | Int_t PreProcess(MParList *pList);
|
---|
43 | Int_t Process();
|
---|
44 |
|
---|
45 | public:
|
---|
46 | MExtractSignal2(const char *name=NULL, const char *title=NULL);
|
---|
47 |
|
---|
48 | void SetRange(Byte_t hifirst=fgFirst, Byte_t hilast=fgLast, Byte_t window=fgWindow);
|
---|
49 | void SetSaturationLimit(Byte_t lim) { fSaturationLimit = lim; }
|
---|
50 |
|
---|
51 | ClassDef(MExtractSignal2, 0) // Extracted Signal as highest integral content
|
---|
52 | };
|
---|
53 |
|
---|
54 | #endif
|
---|