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 | public:
|
---|
27 |
|
---|
28 | MExtractedSignalCam(const char *name=NULL, const char *title=NULL);
|
---|
29 | ~MExtractedSignalCam();
|
---|
30 |
|
---|
31 | void Print(Option_t *o="") const;
|
---|
32 | void Clear(Option_t *o="");
|
---|
33 | void SetLogStream(MLog *lg);
|
---|
34 |
|
---|
35 | void InitSize(const UInt_t i);
|
---|
36 | Int_t GetSize() const;
|
---|
37 |
|
---|
38 | Byte_t GetNumUsedFADCSlices() const { return fLastUsedSliceHiGain-fFirstUsedSliceHiGain+1; }
|
---|
39 | Byte_t GetNumUsedHiGainFADCSlices() const { return fLastUsedSliceHiGain-fFirstUsedSliceHiGain+1; }
|
---|
40 | Byte_t GetNumUsedLoGainFADCSlices() const { return fLastUsedSliceLoGain-fFirstUsedSliceLoGain+1; }
|
---|
41 |
|
---|
42 | Byte_t GetFirstUsedSliceHiGain() const { return fFirstUsedSliceHiGain; }
|
---|
43 | Byte_t GetLastUsedSliceHiGain() const { return fLastUsedSliceHiGain; }
|
---|
44 |
|
---|
45 | Byte_t GetFirstUsedSliceLoGain() const { return fFirstUsedSliceLoGain; }
|
---|
46 | Byte_t GetLastUsedSliceLoGain() const { return fLastUsedSliceLoGain; }
|
---|
47 |
|
---|
48 | void SetUsedFADCSlices(Byte_t firsth, Byte_t lasth,
|
---|
49 | Byte_t firstl, Byte_t lastl)
|
---|
50 | {
|
---|
51 | fFirstUsedSliceHiGain = firsth;
|
---|
52 | fLastUsedSliceHiGain = lasth;
|
---|
53 | fFirstUsedSliceLoGain = firstl;
|
---|
54 | fLastUsedSliceLoGain = lastl;
|
---|
55 | }
|
---|
56 |
|
---|
57 | MExtractedSignalPix &operator[](Int_t i);
|
---|
58 | const MExtractedSignalPix &operator[](Int_t i) const;
|
---|
59 |
|
---|
60 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
---|
61 | void DrawPixelContent(Int_t num) const;
|
---|
62 |
|
---|
63 | ClassDef(MExtractedSignalCam, 0) // Storage Container for extracted signals in the camera
|
---|
64 | };
|
---|
65 |
|
---|
66 | #endif
|
---|
67 |
|
---|