Last change
on this file since 984 was 977, checked in by tbretz, 23 years ago |
*** empty log message ***
|
-
Property svn:executable
set to
*
|
File size:
898 bytes
|
Line | |
---|
1 | #ifndef MGEOMCAM_H
|
---|
2 | #define MGEOMCAM_H
|
---|
3 |
|
---|
4 | #ifndef MAGIC_H
|
---|
5 | #include "MAGIC.h"
|
---|
6 | #endif
|
---|
7 | #ifndef MPARCONTAINER_H
|
---|
8 | #include "MParContainer.h"
|
---|
9 | #endif
|
---|
10 |
|
---|
11 | class MGeomPix;
|
---|
12 | class TObjArray;
|
---|
13 |
|
---|
14 | class MGeomCam : public MParContainer
|
---|
15 | {
|
---|
16 | private:
|
---|
17 | UInt_t fNumPixels; // Number of pixels in this camera
|
---|
18 | Float_t fMaxRadius; // maximum radius of the camera (eg. for GUI layout)
|
---|
19 |
|
---|
20 | TObjArray *fPixels; // Array of singel pixels storing the geometry
|
---|
21 |
|
---|
22 | protected:
|
---|
23 | void CalcMaxRadius();
|
---|
24 |
|
---|
25 | public:
|
---|
26 |
|
---|
27 | MGeomCam(UInt_t npix, const char *name=NULL, const char *title=NULL);
|
---|
28 |
|
---|
29 | virtual ~MGeomCam();
|
---|
30 |
|
---|
31 | UInt_t GetNumPixels() const { return fNumPixels; }
|
---|
32 | Float_t GetMaxRadius() const { return fMaxRadius; }
|
---|
33 |
|
---|
34 | MGeomPix &operator[](Int_t i);
|
---|
35 | MGeomPix &operator[](Int_t i) const;
|
---|
36 |
|
---|
37 | virtual void Print(Option_t *opt=NULL);
|
---|
38 |
|
---|
39 | ClassDef(MGeomCam, 1) // Geometry base class for the camera
|
---|
40 | };
|
---|
41 |
|
---|
42 | #endif
|
---|
43 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.