source: branches/Mars_use_drstimefiles/mpedestal/MPedPhotCam.h@ 18066

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