source: trunk/MagicSoft/Mars/mgeom/MGeomCamDwarf.h@ 9029

Last change on this file since 9029 was 8386, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 916 bytes
Line 
1#ifndef MARS_MGeomCamDwqarf
2#define MARS_MGeomCamDwarf
3
4#ifndef MARS_MGeomCam
5#include "MGeomCam.h"
6#endif
7
8class MGeomCamDwarf : public MGeomCam
9{
10private:
11 enum { kDirCenter, kDirNE, kDirN, kDirNW, kDirSW, kDirS, kDirSE };
12
13 static Double_t CalcXY(Int_t dir, Int_t ring, Int_t i, Double_t &x, Double_t &y);
14
15 static Int_t CalcNumPix(Double_t rad);
16 static Int_t CalcNumPix(Int_t rings);
17
18 void CreateCam(Double_t diameter, Double_t rad);
19 void CreateCam(Double_t diameter, Int_t rings);
20 void CreateNN();
21
22public:
23 MGeomCamDwarf(Double_t rad, Double_t diameter=21, Double_t dist=4.92, const char *name=NULL);
24 MGeomCamDwarf(Int_t rings, Double_t diameter=21, Double_t dist=4.92, const char *name=NULL);
25 MGeomCamDwarf(const char *name=NULL);
26
27 TObject *Clone(const char *newname) const;
28
29 ClassDef(MGeomCamDwarf, 1) // Geometry class for the Dwarf camera
30};
31
32#endif
33
Note: See TracBrowser for help on using the repository browser.