Changeset 1540 for trunk/MagicSoft/Mars/mgeom
- Timestamp:
- 10/15/02 17:02:46 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mgeom
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgeom/MGeomCam.cc
r1458 r1540 112 112 // -------------------------------------------------------------------------- 113 113 // 114 // returns the ratio of the area of the given pixel to the pixel with 115 // the id 0 to scale variables with the pixel size. 116 // 117 inline Float_t MGeomCam::GetPixRatio(Int_t i) const 118 { 119 return (*this)[0].GetA()/(*this)[i].GetA(); 120 } 121 122 // -------------------------------------------------------------------------- 123 // 114 124 // Prints the Geometry information of all pixels in the camera 115 125 // -
trunk/MagicSoft/Mars/mgeom/MGeomCam.h
r1458 r1540 31 31 virtual ~MGeomCam(); 32 32 33 Float_t GetCameraDist() const { return fCamDist; }34 Float_t GetConvMm2Deg() const { return fConvMm2Deg; }33 Float_t GetCameraDist() const { return fCamDist; } 34 Float_t GetConvMm2Deg() const { return fConvMm2Deg; } 35 35 36 UInt_t GetNumPixels() const { return fNumPixels; } 37 Float_t GetMaxRadius() const { return fMaxRadius; } 36 UInt_t GetNumPixels() const { return fNumPixels; } 37 Float_t GetMaxRadius() const { return fMaxRadius; } 38 Float_t GetPixRatio(Int_t i) const; 38 39 39 40 MGeomPix &operator[](Int_t i) { return *(MGeomPix*)fPixels->UncheckedAt(i); } 40 41 MGeomPix &operator[](Int_t i) const { return *(MGeomPix*)fPixels->UncheckedAt(i); } 42 43 41 44 42 45 virtual void Print(Option_t *opt=NULL) const;
Note:
See TracChangeset
for help on using the changeset viewer.