source: trunk/Mars/msignal/MExtractSignal2.h@ 14905

Last change on this file since 14905 was 3446, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.9 KB
Line 
1#ifndef MARS_MExtractSignal2
2#define MARS_MExtractSignal2
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class MRawEvtData;
9class MRawRunHeader;
10
11class MPedestalCam;
12class MExtractedSignalCam;
13//class MArrivalTime;
14
15class MExtractSignal2 : public MTask
16{
17private:
18 static const Byte_t fgSaturationLimit;
19 static const Byte_t fgFirst;
20 static const Byte_t fgLast;
21 static const Byte_t fgWindowSize;
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 /*
30 MArrivalTime *fArrivalTime; // Arrival Time of FADC sample
31 */
32
33 Byte_t fHiGainFirst; // First hi gain to be used
34 Byte_t fLoGainFirst; // First lo gain to be used
35
36 Byte_t fNumHiGainSamples; // Number of hi gain to be used
37 Byte_t fNumLoGainSamples; // Number of lo gain to be used
38
39 Byte_t fWindowSizeHiGain; // Number of Hi Gain slices in window
40 Float_t fWindowSqrtHiGain; // Sqaure root of number of Hi Gain slices in window
41
42 Byte_t fWindowSizeLoGain; // Number of Lo Gain slices in window
43 Float_t fWindowSqrtLoGain; // Sqaure root of number of Lo Gain slices in window
44
45 Byte_t fSaturationLimit;
46
47 void FindSignal(Byte_t *ptr, Byte_t size, Byte_t window, Int_t &max, Int_t &sat) const;
48
49 Int_t PreProcess(MParList *pList);
50 Int_t Process();
51
52public:
53 MExtractSignal2(const char *name=NULL, const char *title=NULL);
54
55 void SetRange(Byte_t hifirst=fgFirst, Byte_t hilast=fgLast, Byte_t windowh=fgWindowSize,
56 Byte_t lofirst=fgFirst, Byte_t lolast=fgLast, Byte_t windowl=fgWindowSize);
57 void SetSaturationLimit(Byte_t lim) { fSaturationLimit = lim; }
58
59 ClassDef(MExtractSignal2, 0) // Extracted Signal as highest integral content
60};
61
62#endif
Note: See TracBrowser for help on using the repository browser.