Changeset 8385
- Timestamp:
- 03/29/07 13:53:26 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8383 r8385 19 19 -*-*- END OF LINE -*-*- 20 20 21 2007/03/29 Thomas Bretz 22 23 * mgeom/MGeomCam.cc, mgeom/MGeomPix.h: 24 - added new member function to return distance to coordinate 25 origin 26 27 28 21 29 2007/03/28 Thomas Bretz 22 30 -
trunk/MagicSoft/Mars/mgeom/MGeomCam.cc
r7804 r8385 198 198 199 199 const UInt_t s = pix.GetAidx(); 200 const Float_t x = pix.GetX(); 201 const Float_t y = pix.GetY(); 200 202 201 const Float_t d = pix.GetD(); 203 204 const Float_t r = TMath::Hypot(x, y); 202 const Float_t r = pix.GetDist(); 205 203 206 204 const Float_t maxr = r + d; … … 435 433 } 436 434 437 438 435 const MGeomPix &pix = (*this)[idx]; 439 436 GetNeighbors(arr, pix, r); -
trunk/MagicSoft/Mars/mgeom/MGeomPix.h
r7355 r8385 10 10 class MGeomPix : public MParContainer 11 11 { 12 p rivate:12 public: 13 13 static const Float_t gsTan60; // tan(60/kRad2Deg); 14 14 static const Float_t gsTan30; // tan(30/kRad2Deg); 15 15 16 private: 16 17 enum { 17 18 kIsInOutermostRing = BIT(22), … … 63 64 UInt_t GetSector() const { return fSector; } 64 65 66 Float_t GetDist() const { return TMath::Hypot(fX, fY); } 65 67 Float_t GetDist(const MGeomPix &pix) const { return TMath::Hypot(fX-pix.fX, fY-pix.fY); } 66 68 Float_t GetAngle(const MGeomPix &pix) const { return TMath::ATan2(fX - pix.GetX(), fY - pix.GetY()); }
Note:
See TracChangeset
for help on using the changeset viewer.