Changeset 9871 for trunk/Mars


Ignore:
Timestamp:
08/16/10 09:11:51 (14 years ago)
Author:
tbretz
Message:
Moved MGeomCamDwarf::CalcXY to MGeomPix::CalcXY. Removed some obsolete includes.
File:
1 edited

Legend:

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

    r9519 r9871  
    2626
    2727public:
     28    // Helper to calculate hexagonal geometry
     29    enum { kDirCenter, kDirNE, kDirN, kDirNW, kDirSW, kDirS, kDirSE };
     30
     31    static Double_t CalcXY(Int_t dir, Int_t ring, Int_t i, Double_t &x, Double_t &y);
     32
     33    // MGeomPix
    2834    MGeomPix(Float_t x=0, Float_t y=0, Float_t d=1, UInt_t s=0, UInt_t aidx=0);
    2935
     36    // TObject
    3037    void Copy(TObject &obj) const
    3138    {
     
    3845    }
    3946
     47    void Print(Option_t *opt=NULL) const;
     48
     49    // Setter
    4050    void SetD(Float_t d=1) { fD=d; fA=d*d*gsSin60; }
    4151    void SetPhi(Double_t phi=0);
     
    4858    Float_t GetDy() const { return fD*gsSin60; } // Distance of two rows in y-direction (without rotation)
    4959
     60    // Helper
    5061    Bool_t  IsInside(Float_t px, Float_t py) const;
    5162    void    PaintPrimitive(const TAttLine &line, const TAttFill &fill, Double_t scalexy=1, Double_t scaled=1) const;
    52 
    53     void Print(Option_t *opt=NULL) const;
    5463
    5564    ClassDef(MGeomPix, 5) // Geometry class describing the geometry of one pixel
Note: See TracChangeset for help on using the changeset viewer.