Changeset 9871 for trunk/Mars
- Timestamp:
- 08/16/10 09:11:51 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mgeom/MGeomPix.h
r9519 r9871 26 26 27 27 public: 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 28 34 MGeomPix(Float_t x=0, Float_t y=0, Float_t d=1, UInt_t s=0, UInt_t aidx=0); 29 35 36 // TObject 30 37 void Copy(TObject &obj) const 31 38 { … … 38 45 } 39 46 47 void Print(Option_t *opt=NULL) const; 48 49 // Setter 40 50 void SetD(Float_t d=1) { fD=d; fA=d*d*gsSin60; } 41 51 void SetPhi(Double_t phi=0); … … 48 58 Float_t GetDy() const { return fD*gsSin60; } // Distance of two rows in y-direction (without rotation) 49 59 60 // Helper 50 61 Bool_t IsInside(Float_t px, Float_t py) const; 51 62 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;54 63 55 64 ClassDef(MGeomPix, 5) // Geometry class describing the geometry of one pixel
Note:
See TracChangeset
for help on using the changeset viewer.