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

Last change on this file since 1014 was 986, checked in by tbretz, 23 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 904 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
11class MGeomPix;
12class TObjArray;
13
14class MGeomCam : public MParContainer
15{
16private:
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
22protected:
23 void CalcMaxRadius();
24
25public:
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) const;
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.