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