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