]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Add status bits for cluster usage and sharing.
authorbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 16 May 2008 15:52:41 +0000 (15:52 +0000)
committerbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 16 May 2008 15:52:41 +0000 (15:52 +0000)
STEER/AliCluster.h

index 18bc49bd8a320776b64d5e9746527b0b8f7b5903..dc0f01e9e4e5b5cff3bee6965bfa5997711b2803 100644 (file)
@@ -23,6 +23,11 @@ class TGeoPNEntry;
 
 class AliCluster : public TObject {
  public:
+  enum {
+    kUsed   =  BIT(14),
+    kShared =  BIT(15)
+  };
+
   AliCluster();
   AliCluster(UShort_t volId, const Float_t *hit, Float_t x = 0, Float_t sigyz = 0, const Int_t *lab = NULL);
   AliCluster(UShort_t volId,
@@ -42,6 +47,10 @@ class AliCluster : public TObject {
   Float_t  GetSigmaYZ()      const {return fSigmaYZ;}
   UShort_t GetVolumeId()     const {return fVolumeId;}
 
+  void   IncreaseClusterUsage()  { if (TestBit(kUsed)) SetBit(kShared); else SetBit(kUsed); }
+  Bool_t IsClusterUsed()   const { return TestBit(kUsed);   }
+  Bool_t IsClusterShared() const { return TestBit(kShared); }
+
   virtual void Use(Int_t = 0) {;}
 
   Bool_t   GetGlobalXYZ(Float_t xyz[3]) const;