Changeset 1216 for trunk/MagicSoft/Mars/mgui
- Timestamp:
- 02/13/02 16:40:37 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mgui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgui/MGeomCam.cc
r1082 r1216 49 49 // are deleted when the corresponding array is deleted. 50 50 // 51 MGeomCam::MGeomCam(UInt_t npix, const char *name, const char *title)52 : fNumPixels(npix) 51 MGeomCam::MGeomCam(UInt_t npix, Float_t dist, const char *name, const char *title) 52 : fNumPixels(npix), fCamDist(dist), fMm2Deg(kRad2Deg/(dist*1000)) 53 53 { 54 54 fName = name ? name : "MGeomCam"; -
trunk/MagicSoft/Mars/mgui/MGeomCam.h
r1052 r1216 17 17 Float_t fMaxRadius; // maximum radius of the camera (eg. for GUI layout) 18 18 19 Float_t fCamDist; // [m] Average distance of the camera from the mirror 20 Float_t fMm2Deg; // conversion factor to convert mm in the camera plain into degrees 21 19 22 TObjArray *fPixels; // Array of singel pixels storing the geometry 20 23 … … 24 27 public: 25 28 26 MGeomCam(UInt_t npix, const char *name=NULL, const char *title=NULL);29 MGeomCam(UInt_t npix, Float_t dist, const char *name=NULL, const char *title=NULL); 27 30 28 31 virtual ~MGeomCam(); 32 33 Float_t GetCameraDist() const { return fCamDist; } 34 Float_t GetConvMm2Deg() const { return fMm2Deg; } 29 35 30 36 UInt_t GetNumPixels() const { return fNumPixels; } -
trunk/MagicSoft/Mars/mgui/MGeomCamCT1.cc
r1082 r1216 53 53 // CreateCam and CreateNN 54 54 // 55 MGeomCamCT1::MGeomCamCT1(const char *name) : MGeomCam(127, name, "Geometry information of CT1 camera") 55 MGeomCamCT1::MGeomCamCT1(const char *name) 56 : MGeomCam(127, 4.88, name, "Geometry information of CT1 camera") 56 57 { 57 58 CreateCam(); -
trunk/MagicSoft/Mars/mgui/MGeomCamMagic.cc
r1082 r1216 42 42 #include "MGeomPix.h" 43 43 44 ClassImp(MGeomCamMagic) 44 ClassImp(MGeomCamMagic); 45 45 46 46 // -------------------------------------------------------------------------- … … 49 49 // CreateCam and CreateNN 50 50 // 51 MGeomCamMagic::MGeomCamMagic(const char *name) : MGeomCam(577, name, "Geometry information of Magic Camera") 51 MGeomCamMagic::MGeomCamMagic(const char *name) 52 : MGeomCam(577, 17, name, "Geometry information of Magic Camera") 52 53 { 53 54 CreateCam();
Note:
See TracChangeset
for help on using the changeset viewer.