Last change
on this file since 943 was 859, checked in by tbretz, 23 years ago |
*** empty log message ***
|
-
Property svn:executable
set to
*
|
File size:
943 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 |
|
---|
17 | class MGeomCam : public MParContainer
|
---|
18 | {
|
---|
19 | private:
|
---|
20 | UInt_t fNumPixels; // Number of pixels in this camera
|
---|
21 | TObjArray *fPixels; // Array of singel pixels storing the geometry
|
---|
22 |
|
---|
23 | public:
|
---|
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 | MGeomPix &operator[](Int_t i) const { return *(MGeomPix*)fPixels->At(i); }
|
---|
35 |
|
---|
36 | virtual void Print(Option_t *opt=NULL);
|
---|
37 |
|
---|
38 | ClassDef(MGeomCam, 1) // Geometry base class for the camera
|
---|
39 | };
|
---|
40 |
|
---|
41 | #endif
|
---|
42 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.