source: tags/Mars-V0.8.6/mpedestal/MPedPhotCam.h

Last change on this file was 4609, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MPedPhotCam
2#define MARS_MPedPhotCam
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 MPedPhotPix;
15class MBadPixelsCam;
16
17class MPedPhotCam : public MParContainer, public MCamEvent
18{
19private:
20 TClonesArray *fArray; // FIXME: Change TClonesArray away from a pointer?
21 TClonesArray *fAreas; //-> Array of MPedPhotPix, one per pixel area
22 TClonesArray *fSectors; //-> Array of MPedPhotPix, one per camera sector
23
24 // void InitSize(const UInt_t i);
25 void InitAreas(const UInt_t i);
26 void InitSectors(const UInt_t i);
27
28public:
29 MPedPhotCam(const char *name=NULL, const char *title=NULL);
30 ~MPedPhotCam();
31
32 void Clear(Option_t *o="");
33
34 void Init(const MGeomCam &geom);
35 void InitSize(const UInt_t i); // HB
36 Int_t GetSize() const;
37
38 MPedPhotPix &operator[](Int_t i);
39 const MPedPhotPix &operator[](Int_t i) const;
40
41 MPedPhotPix &GetArea(UInt_t i);
42 const MPedPhotPix &GetArea(UInt_t i) const;
43
44 Int_t GetNumAreas() const;
45
46 MPedPhotPix &GetSector(UInt_t i);
47 const MPedPhotPix &GetSector(UInt_t i) const;
48
49 Int_t GetNumSectors() const;
50
51 void Print(Option_t *o="") const;
52
53 void ReCalc(const MGeomCam &geom, MBadPixelsCam *bad=NULL);
54
55 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
56 void DrawPixelContent(Int_t num) const;
57
58 ClassDef(MPedPhotCam, 2) // Storage Container for all pedestal information of the camera (in units of photons)
59};
60
61#endif
62
Note: See TracBrowser for help on using the repository browser.