- Timestamp:
- 06/02/08 10:00:02 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mgeom
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgeom/MGeomPix.cc
r8908 r8909 54 54 #include "MGeomPix.h" 55 55 56 #include < math.h>56 #include <TMath.h> 57 57 58 58 #include "MLog.h" -
trunk/MagicSoft/Mars/mgeom/MGeomPix.h
r8756 r8909 73 73 UInt_t GetSector() const { return fSector; } 74 74 75 Float_t GetDist() const { return TMath::Hypot(fX, fY); }76 Float_t GetDist(const MGeomPix &pix) const { return TMath::Hypot(fX-pix.fX, fY-pix.fY); }77 Float_t GetAngle(const MGeomPix &pix) const { return TMath::ATan2(fX - pix.GetX(), fY - pix.GetY()); }75 Float_t GetDist() const; 76 Float_t GetDist(const MGeomPix &pix) const; 77 Float_t GetAngle(const MGeomPix &pix) const; 78 78 79 79 Float_t GetA() const { return fA; /*fD*fD*gsTan60/2;*/ }
Note:
See TracChangeset
for help on using the changeset viewer.