|
Last change
on this file since 976 was 975, checked in by tbretz, 25 years ago |
|
*** empty log message ***
|
-
Property svn:executable
set to
*
|
|
File size:
1.0 KB
|
| 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 | Float_t fMaxRadius; // maximum radius of the camera (eg. for GUI layout)
|
|---|
| 22 |
|
|---|
| 23 | TObjArray *fPixels; // Array of singel pixels storing the geometry
|
|---|
| 24 |
|
|---|
| 25 | protected:
|
|---|
| 26 | void CalcMaxRadius();
|
|---|
| 27 |
|
|---|
| 28 | public:
|
|---|
| 29 |
|
|---|
| 30 | MGeomCam(UInt_t npix, const char *name=NULL, const char *title=NULL);
|
|---|
| 31 |
|
|---|
| 32 | virtual ~MGeomCam() { delete fPixels; }
|
|---|
| 33 |
|
|---|
| 34 | UInt_t GetNumPixels() const { return fNumPixels; }
|
|---|
| 35 | Float_t GetMaxRadius() const { return fMaxRadius; }
|
|---|
| 36 |
|
|---|
| 37 | MGeomPix &operator[](Int_t i) { return *(MGeomPix*)fPixels->At(i); }
|
|---|
| 38 | MGeomPix &operator[](Int_t i) const { return *(MGeomPix*)fPixels->At(i); }
|
|---|
| 39 |
|
|---|
| 40 | virtual void Print(Option_t *opt=NULL);
|
|---|
| 41 |
|
|---|
| 42 | ClassDef(MGeomCam, 1) // Geometry base class for the camera
|
|---|
| 43 | };
|
|---|
| 44 |
|
|---|
| 45 | #endif
|
|---|
| 46 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.