1 | #ifndef MARS_MPedestalSubtractedEvt
|
---|
2 | #define MARS_MPedestalSubtractedEvt
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 | #ifndef MARS_MCamEvent
|
---|
8 | #include "MCamEvent.h"
|
---|
9 | #endif
|
---|
10 | #ifndef MARS_MArrayF
|
---|
11 | #include "MArrayF.h"
|
---|
12 | #endif
|
---|
13 | #ifndef MARS_MArrayB
|
---|
14 | #include "MArrayB.h"
|
---|
15 | #endif
|
---|
16 |
|
---|
17 | class MPedestalSubtractedEvt : public MParContainer, public MCamEvent
|
---|
18 | {
|
---|
19 | private:
|
---|
20 | MArrayF fSamples; // list of all samples with pedestal subtracted
|
---|
21 | MArrayB fSamplesRaw; // list of all samples (raw)
|
---|
22 |
|
---|
23 | UInt_t fNumSamples; // number of samples per pixel
|
---|
24 | UInt_t fNumPixels; // number of pixels
|
---|
25 |
|
---|
26 | public:
|
---|
27 | MPedestalSubtractedEvt(const char *name=NULL, const char *title=NULL)
|
---|
28 | : fNumSamples(0), fNumPixels(0)
|
---|
29 | {
|
---|
30 | }
|
---|
31 |
|
---|
32 | void InitSamples(UInt_t pixels, UInt_t samples);
|
---|
33 |
|
---|
34 | Float_t *GetSamples(UInt_t pixel) const;
|
---|
35 | Byte_t *GetSamplesRaw(UInt_t pixel) const;
|
---|
36 |
|
---|
37 | UInt_t GetNumSamples() const { return fNumSamples; }
|
---|
38 | UShort_t GetNumPixels() const { return fNumPixels; }
|
---|
39 |
|
---|
40 | Int_t GetSaturation(const Int_t idx, Int_t limit, Int_t &first, Int_t &last) const;
|
---|
41 | Int_t GetMax(const Int_t pixidx, const Int_t first, const Int_t last, Int_t &val) const;
|
---|
42 | Int_t GetMax(const Int_t pixidx, const Int_t first, const Int_t last) const
|
---|
43 | {
|
---|
44 | Int_t val;
|
---|
45 | return GetMax(pixidx, first, last, val);
|
---|
46 | }
|
---|
47 | Int_t GetMax(const Int_t pixidx, Int_t &val) const
|
---|
48 | {
|
---|
49 | return GetMax(pixidx, 0, fNumSamples, val);
|
---|
50 | }
|
---|
51 |
|
---|
52 | Int_t GetMax(const Int_t pixidx) const
|
---|
53 | {
|
---|
54 | Int_t val;
|
---|
55 | return GetMax(pixidx, 0, fNumSamples, val);
|
---|
56 | }
|
---|
57 |
|
---|
58 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const { return kTRUE; }
|
---|
59 | void DrawPixelContent(Int_t num) const { }
|
---|
60 |
|
---|
61 | ClassDef(MPedestalSubtractedEvt, 6) //Container to store the raw Event Data
|
---|
62 | };
|
---|
63 |
|
---|
64 | #endif
|
---|