Changeset 8909 for trunk


Ignore:
Timestamp:
06/02/08 10:00:02 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mgeom
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mgeom/MGeomPix.cc

    r8908 r8909  
    5454#include "MGeomPix.h"
    5555
    56 #include <math.h>
     56#include <TMath.h>
    5757
    5858#include "MLog.h"
  • trunk/MagicSoft/Mars/mgeom/MGeomPix.h

    r8756 r8909  
    7373    UInt_t  GetSector() const { return fSector; }
    7474
    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;
    7878
    7979    Float_t GetA() const    { return fA; /*fD*fD*gsTan60/2;*/ }
Note: See TracChangeset for help on using the changeset viewer.