From: belikov Date: Fri, 16 May 2008 15:52:41 +0000 (+0000) Subject: Add status bits for cluster usage and sharing. X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=375f676a1c311bc4820657ea3beab56dc472e2b3 Add status bits for cluster usage and sharing. --- diff --git a/STEER/AliCluster.h b/STEER/AliCluster.h index 18bc49bd8a3..dc0f01e9e4e 100644 --- a/STEER/AliCluster.h +++ b/STEER/AliCluster.h @@ -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;