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