Ignore:
Timestamp:
08/22/05 10:46:31 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mgeom
Files:
2 edited

Legend:

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

    r6338 r7297  
    141141// --------------------------------------------------------------------------
    142142//
     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//
     147Float_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//
    143157//  Set the kIsOuterRing flag for all pixels which have a outermost pixel
    144158//  as Next Neighbor and don't have the kIsOutermostRing flag itself.
  • trunk/MagicSoft/Mars/mgeom/MGeomPix.h

    r5429 r7297  
    6363    UInt_t  GetSector() const { return fSector; }
    6464
     65    Float_t GetDist(const MGeomPix & pix) const  { return TMath::Hypot(fX-pix.fX, fY-pix.fY); }
     66
    6567    Float_t GetA() const    { return fA; /*fD*fD*gsTan60/2;*/ }
    6668    Int_t   GetAidx() const { return fAidx; }
Note: See TracChangeset for help on using the changeset viewer.