source: trunk/MagicSoft/Mars/manalysis/MPedestalCam.h@ 3188

Last change on this file since 3188 was 3188, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.2 KB
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
11class TClonesArray;
12
13class MGeomCam;
14class MPedestalPix;
15class MPedestalCam : public MCamEvent, public MParContainer
16{
17private:
18
19 TClonesArray *fArray; // FIXME: Change TClonesArray away from a pointer?
20
21 UInt_t fTotalEntries;
22
23public:
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.