source: trunk/MagicSoft/Mars/mgui/MGeomCam.h@ 1037

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