Changeset 8923 for trunk/MagicSoft/Mars/mgeom/MGeomPix.h
- Timestamp:
- 06/03/08 16:27:48 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgeom/MGeomPix.h
r8909 r8923 25 25 private: 26 26 enum { 27 kIsInOutermostRing = BIT(22), 28 kIsInOuterRing = BIT(23), 29 kUserBits = 0x1fc000 // 14-21 are allowed 27 kIsInOutermostRing = 0, 28 kIsInOuterRing = 1, 30 29 }; 31 30 … … 40 39 UInt_t fSector; // Number of sector the pixels corresponds to 41 40 UInt_t fAidx; // Area index of the pixel 41 42 Byte_t fUserBits; 42 43 43 44 public: … … 54 55 pix.fSector = fSector; 55 56 pix.fAidx = fAidx; 57 pix.fUserBits = fUserBits; 56 58 for (int i=0; i<6; i++) 57 59 pix.fNeighbors[i] = fNeighbors[i]; 60 61 TObject::Copy(obj); 58 62 } 59 63 … … 83 87 Short_t GetNeighbor(Byte_t i) const { return fNeighbors[i]; } 84 88 85 Bool_t IsInOutermostRing() const { return T estBit(kIsInOutermostRing); }86 Bool_t IsInOuterRing() const { return T estBit(kIsInOuterRing); }89 Bool_t IsInOutermostRing() const { return TESTBIT(fUserBits, kIsInOutermostRing); } 90 Bool_t IsInOuterRing() const { return TESTBIT(fUserBits, kIsInOuterRing); } 87 91 88 92 Bool_t IsInside(Float_t px, Float_t py) const; 89 93 Int_t GetDirection(const MGeomPix &pix) const; 90 94 91 /* 92 // 93 // These function are for future usage. They are not virtual in 94 // root by now. 95 // 96 void SetBit(UInt_t f, Bool_t set) { set ? TObject::SetBit(f) : TObject::ResetBit(f); } 97 void SetBit(UInt_t f) { TObject::SetBit(f & kUserBits); } 98 void ResetBit(UInt_t f) { TObject::ResetBit(f & kUserBits); } 99 void InvertBit(UInt_t f) { TObject InvertBit(f & kUserBits); } 100 */ 101 102 ClassDef(MGeomPix, 3) // Geometry class describing the geometry of one pixel 95 ClassDef(MGeomPix, 4) // Geometry class describing the geometry of one pixel 103 96 }; 104 97
Note:
See TracChangeset
for help on using the changeset viewer.