Line | |
---|
1 | #ifndef MARS_MPedestalCam
|
---|
2 | #define MARS_MPedestalCam
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 | #ifndef MARS_MCamEvent
|
---|
8 | #include "MCamEvent.h"
|
---|
9 | #endif
|
---|
10 |
|
---|
11 | class TClonesArray;
|
---|
12 |
|
---|
13 | class MGeomCam;
|
---|
14 | class MPedestalPix;
|
---|
15 | class MPedestalCam : public MCamEvent, public MParContainer
|
---|
16 | {
|
---|
17 | private:
|
---|
18 |
|
---|
19 | TClonesArray *fArray; // FIXME: Change TClonesArray away from a pointer?
|
---|
20 |
|
---|
21 | UInt_t fTotalEntries;
|
---|
22 |
|
---|
23 | public:
|
---|
24 | MPedestalCam(const char *name=NULL, const char *title=NULL);
|
---|
25 | ~MPedestalCam();
|
---|
26 |
|
---|
27 | void Clear(Option_t *o="");
|
---|
28 |
|
---|
29 | void InitSize(const UInt_t i);
|
---|
30 |
|
---|
31 | MPedestalPix &operator[](Int_t i);
|
---|
32 | const MPedestalPix &operator[](Int_t i) const;
|
---|
33 |
|
---|
34 | // Setters
|
---|
35 | void SetTotalEntries(const UInt_t n) { fTotalEntries = n; }
|
---|
36 |
|
---|
37 | // Getters
|
---|
38 | UInt_t GetSize() const;
|
---|
39 | UInt_t GetTotalEntries() const { return fTotalEntries; }
|
---|
40 |
|
---|
41 | Float_t GetPedestalMin(const MGeomCam *cam) const;
|
---|
42 | Float_t GetPedestalMax(const MGeomCam *cam) const;
|
---|
43 |
|
---|
44 | void Print(Option_t *o="") const;
|
---|
45 |
|
---|
46 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
---|
47 | void DrawPixelContent(Int_t idx) const;
|
---|
48 |
|
---|
49 | ClassDef(MPedestalCam, 1) // Storage Container for all pedestal information of the camera
|
---|
50 | };
|
---|
51 |
|
---|
52 | #endif
|
---|
53 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.