1 | #ifndef MARS_MExtractedSignalCam
|
---|
2 | #define MARS_MExtractedSignalCam
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef MARS_MCamEvent
|
---|
9 | #include "MCamEvent.h"
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | class TClonesArray;
|
---|
13 | class MExtractedSignalPix;
|
---|
14 |
|
---|
15 | class MExtractedSignalCam : public MParContainer, public MCamEvent
|
---|
16 | {
|
---|
17 | private:
|
---|
18 | TClonesArray *fArray; //-> FIXME: Change TClonesArray away from a pointer?
|
---|
19 |
|
---|
20 | Byte_t fFirstUsedSliceHiGain;
|
---|
21 | Byte_t fFirstUsedSliceLoGain;
|
---|
22 |
|
---|
23 | Byte_t fLastUsedSliceHiGain;
|
---|
24 | Byte_t fLastUsedSliceLoGain;
|
---|
25 |
|
---|
26 | Float_t fUsedWindowHiGain;
|
---|
27 | Float_t fUsedWindowLoGain;
|
---|
28 |
|
---|
29 | public:
|
---|
30 |
|
---|
31 | MExtractedSignalCam(const char *name=NULL, const char *title=NULL);
|
---|
32 | ~MExtractedSignalCam();
|
---|
33 |
|
---|
34 | void Print(Option_t *o="") const;
|
---|
35 | void Clear(Option_t *o="");
|
---|
36 | void SetLogStream(MLog *lg);
|
---|
37 | void Reset() { Clear(); }
|
---|
38 |
|
---|
39 | void InitSize(const UInt_t i);
|
---|
40 | Int_t GetSize() const;
|
---|
41 |
|
---|
42 | Float_t GetNumUsedHiGainFADCSlices() const { return fUsedWindowHiGain; }
|
---|
43 | Float_t GetNumUsedLoGainFADCSlices() const { return fUsedWindowLoGain; }
|
---|
44 |
|
---|
45 | Byte_t GetFirstUsedSliceHiGain() const { return fFirstUsedSliceHiGain; }
|
---|
46 | Byte_t GetFirstUsedSliceLoGain() const { return fFirstUsedSliceLoGain; }
|
---|
47 |
|
---|
48 | Byte_t GetLastUsedSliceHiGain() const { return fLastUsedSliceHiGain; }
|
---|
49 | Byte_t GetLastUsedSliceLoGain() const { return fLastUsedSliceLoGain; }
|
---|
50 |
|
---|
51 | void SetUsedFADCSlices(Byte_t firsth, Byte_t lasth, Float_t winh,
|
---|
52 | Byte_t firstl, Byte_t lastl, Float_t winl)
|
---|
53 | {
|
---|
54 | fFirstUsedSliceHiGain = firsth;
|
---|
55 | fLastUsedSliceHiGain = lasth;
|
---|
56 | fUsedWindowHiGain = winh;
|
---|
57 | fFirstUsedSliceLoGain = firstl;
|
---|
58 | fLastUsedSliceLoGain = lastl;
|
---|
59 | fUsedWindowLoGain = winl;
|
---|
60 | }
|
---|
61 |
|
---|
62 | MExtractedSignalPix &operator[](Int_t i);
|
---|
63 | const MExtractedSignalPix &operator[](Int_t i) const;
|
---|
64 |
|
---|
65 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
---|
66 | void DrawPixelContent(Int_t num) const;
|
---|
67 |
|
---|
68 | ClassDef(MExtractedSignalCam, 1) // Storage Container for extracted signals in the camera
|
---|
69 | };
|
---|
70 |
|
---|
71 | #endif
|
---|
72 |
|
---|