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 |
|
---|
16 | class MPedestalCam : public MCamEvent, public MParContainer
|
---|
17 | {
|
---|
18 | private:
|
---|
19 | TClonesArray *fArray; //-> FIXME: Change TClonesArray away from a pointer?
|
---|
20 | UInt_t fTotalEntries; // Total number of times, the Process was executed (to estimate the error of pedestal)
|
---|
21 |
|
---|
22 | public:
|
---|
23 | MPedestalCam(const char *name=NULL, const char *title=NULL);
|
---|
24 | ~MPedestalCam();
|
---|
25 |
|
---|
26 | void Clear(Option_t *o="");
|
---|
27 |
|
---|
28 | void InitSize(const UInt_t i);
|
---|
29 |
|
---|
30 | MPedestalPix &operator[](Int_t i);
|
---|
31 | const MPedestalPix &operator[](Int_t i) const;
|
---|
32 |
|
---|
33 | // Setters
|
---|
34 | void SetTotalEntries(const ULong_t n) { fTotalEntries = n; }
|
---|
35 |
|
---|
36 | // Getters
|
---|
37 | Int_t GetSize() const;
|
---|
38 | ULong_t GetTotalEntries() const { return fTotalEntries; }
|
---|
39 |
|
---|
40 | Float_t GetPedestalMin(const MGeomCam *cam) const;
|
---|
41 | Float_t GetPedestalMax(const MGeomCam *cam) const;
|
---|
42 |
|
---|
43 | void Print(Option_t *o="") const;
|
---|
44 |
|
---|
45 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
---|
46 | void DrawPixelContent(Int_t idx) const;
|
---|
47 |
|
---|
48 | ClassDef(MPedestalCam, 1) // Storage Container for all pedestal information of the camera
|
---|
49 | };
|
---|
50 |
|
---|
51 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.