source: trunk/MagicSoft/Mars/msignal/MExtractor.h@ 3869

Last change on this file since 3869 was 3868, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.0 KB
Line 
1#ifndef MARS_MExtractor
2#define MARS_MExtractor
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MExtractor //
7// //
8// Base class for the signal extractors //
9// //
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef MARS_MTask
13#include "MTask.h"
14#endif
15
16class MRawEvtData;
17class MRawRunHeader;
18
19class MPedestalCam;
20class MExtractedSignalCam;
21
22class MExtractor : public MTask
23{
24protected:
25 static const Byte_t fgSaturationLimit;
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 fHiGainFirst;
34 Byte_t fLoGainFirst;
35
36 Byte_t fHiGainLast;
37 Byte_t fLoGainLast;
38
39 Float_t fNumHiGainSamples;
40 Float_t fNumLoGainSamples;
41
42 Float_t fSqrtHiGainSamples;
43 Float_t fSqrtLoGainSamples;
44
45 Byte_t fSaturationLimit;
46
47 virtual void FindSignalHiGain(Byte_t *firstused, Int_t &sum, Byte_t &sat) const;
48 virtual void FindSignalLoGain(Byte_t *firstused, Int_t &sum, Byte_t &sat) const;
49
50 virtual Int_t PreProcess(MParList *pList);
51 virtual Int_t Process();
52 virtual void StreamPrimitive(ofstream &out) const;
53
54public:
55 MExtractor(const char *name=NULL, const char *title=NULL);
56
57 void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0);
58 void SetSaturationLimit(Byte_t lim) { fSaturationLimit = lim; }
59
60 ClassDef(MExtractor, 0) // Signal Extractor Base Class
61};
62
63#endif
Note: See TracBrowser for help on using the repository browser.