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