Changeset 7297 for trunk/MagicSoft/Mars/mgeom
- Timestamp:
- 08/22/05 10:46:31 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mgeom
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgeom/MGeomCam.cc
r6338 r7297 141 141 // -------------------------------------------------------------------------- 142 142 // 143 // Returns the distance between the pixels i and j. -1 if an index 144 // doesn't exist. The default for j is 0. Assuming that 0 is the index 145 // for a central pixel you can get the distance to the camera center. 146 // 147 Float_t MGeomCam::GetDist(UShort_t i, UShort_t j) const 148 { 149 if (i>=fNumPixels || j>=fNumPixels) 150 return -1; 151 152 return (*this)[i].GetDist((*this)[j]); 153 } 154 155 // -------------------------------------------------------------------------- 156 // 143 157 // Set the kIsOuterRing flag for all pixels which have a outermost pixel 144 158 // as Next Neighbor and don't have the kIsOutermostRing flag itself. -
trunk/MagicSoft/Mars/mgeom/MGeomPix.h
r5429 r7297 63 63 UInt_t GetSector() const { return fSector; } 64 64 65 Float_t GetDist(const MGeomPix & pix) const { return TMath::Hypot(fX-pix.fX, fY-pix.fY); } 66 65 67 Float_t GetA() const { return fA; /*fD*fD*gsTan60/2;*/ } 66 68 Int_t GetAidx() const { return fAidx; }
Note:
See TracChangeset
for help on using the changeset viewer.