Ignore:
Timestamp:
06/03/08 16:27:48 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8909 r8923  
    2525private:
    2626    enum {
    27         kIsInOutermostRing = BIT(22),
    28         kIsInOuterRing     = BIT(23),
    29         kUserBits          = 0x1fc000 // 14-21 are allowed
     27        kIsInOutermostRing = 0,
     28        kIsInOuterRing     = 1,
    3029    };
    3130
     
    4039    UInt_t fSector;        // Number of sector the pixels corresponds to
    4140    UInt_t fAidx;          // Area index of the pixel
     41
     42    Byte_t fUserBits;
    4243
    4344public:
     
    5455        pix.fSector = fSector;
    5556        pix.fAidx = fAidx;
     57        pix.fUserBits = fUserBits;
    5658        for (int i=0; i<6; i++)
    5759            pix.fNeighbors[i] = fNeighbors[i];
     60
     61        TObject::Copy(obj);
    5862    }
    5963
     
    8387    Short_t GetNeighbor(Byte_t i) const { return fNeighbors[i]; }
    8488
    85     Bool_t IsInOutermostRing() const { return TestBit(kIsInOutermostRing); }
    86     Bool_t IsInOuterRing() const     { return TestBit(kIsInOuterRing); }
     89    Bool_t IsInOutermostRing() const { return TESTBIT(fUserBits, kIsInOutermostRing); }
     90    Bool_t IsInOuterRing() const     { return TESTBIT(fUserBits, kIsInOuterRing); }
    8791
    8892    Bool_t IsInside(Float_t px, Float_t py) const;
    8993    Int_t  GetDirection(const MGeomPix &pix) const;
    9094
    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
    10396};
    10497
Note: See TracChangeset for help on using the changeset viewer.