Changeset 8385


Ignore:
Timestamp:
03/29/07 13:53:26 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8383 r8385  
    1919                                                 -*-*- END OF LINE -*-*-
    2020
     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
    2129 2007/03/28 Thomas Bretz
    2230
  • trunk/MagicSoft/Mars/mgeom/MGeomCam.cc

    r7804 r8385  
    198198
    199199        const UInt_t  s = pix.GetAidx();
    200         const Float_t x = pix.GetX();
    201         const Float_t y = pix.GetY();
     200
    202201        const Float_t d = pix.GetD();
    203 
    204         const Float_t r = TMath::Hypot(x, y);
     202        const Float_t r = pix.GetDist();
    205203
    206204        const Float_t maxr = r + d;
     
    435433    }
    436434
    437 
    438435    const MGeomPix &pix = (*this)[idx];
    439436    GetNeighbors(arr, pix, r);
  • trunk/MagicSoft/Mars/mgeom/MGeomPix.h

    r7355 r8385  
    1010class MGeomPix : public MParContainer
    1111{
    12 private:
     12public:
    1313    static const Float_t gsTan60; // tan(60/kRad2Deg);
    1414    static const Float_t gsTan30; // tan(30/kRad2Deg);
    1515
     16private:
    1617    enum {
    1718        kIsInOutermostRing = BIT(22),
     
    6364    UInt_t  GetSector() const { return fSector; }
    6465
     66    Float_t GetDist() const  { return TMath::Hypot(fX, fY); }
    6567    Float_t GetDist(const MGeomPix &pix) const  { return TMath::Hypot(fX-pix.fX, fY-pix.fY); }
    6668    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.