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

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