Changeset 10089


Ignore:
Timestamp:
Jan 6, 2011, 4:51:46 PM (10 years ago)
Author:
tbretz
Message:
Added a new abstract function GetL() to MGeom.
Location:
trunk/Mars
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mgeom/MGeom.h

    r9571 r10089  
    7979    Float_t GetY() const  { return fY; }
    8080
     81    virtual Float_t GetL() const = 0;    // Length of a side to a neighbor
    8182    virtual Float_t GetT() const = 0;    // Maximum elongation
    8283
  • trunk/Mars/mgeom/MGeomPix.h

    r9871 r10089  
    5353    Float_t GetD() const  { return fD; }         // Distance between two parallel sides
    5454    Float_t GetL() const  { return fD*gsTan30; } // Length of one of the parallel sides
    55     Float_t GetT() const  { return fD/gsTan60; } // Distance between two opposite edges (traverse)
     55    Float_t GetT() const  { return fD/gsTan60; } // Half distance between two opposite edges (traverse)
    5656
    5757    Float_t GetDx() const { return fD; }         // Distance of two rows in x-direction (without rotation)
  • trunk/Mars/mgeom/MGeomRectangle.cc

    r9385 r10089  
    9797// ------------------------------------------------------------------------
    9898//
    99 // Return the distance of the two opposite edges.
     99// Return the distance from the center to one of the two opposite edges.
    100100//
    101101Float_t MGeomRectangle::GetT() const
    102102{
    103103    return TMath::Hypot(fW, fH)/2;
     104}
     105
     106// ------------------------------------------------------------------------
     107//
     108// Return the average length of the sides
     109//
     110Float_t MGeomRectangle::GetL() const
     111{
     112    return (fW+fH)/2;
    104113}
    105114
  • trunk/Mars/mgeom/MGeomRectangle.h

    r9385 r10089  
    3131    Float_t GetH() const { return fH; }
    3232    Float_t GetT() const;
     33    Float_t GetL() const;
    3334
    3435    Bool_t  IsInside(Float_t px, Float_t py) const;
  • trunk/Mars/mimage/MNewImagePar2.cc

    r9369 r10089  
    109109
    110110        // FIXME: GetT is not the correct value
    111         fBorderLinePixel += (nn-used)*gpix.GetT();
     111        fBorderLinePixel += (nn-used)*gpix.GetL();
    112112    }
    113113
Note: See TracChangeset for help on using the changeset viewer.