X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONVCluster.h;h=b86a5af5f8e45186ffdb97569c9327f066321cc4;hb=29cdb6fe3e05c0d8a20a765f60ff8c4a51386b7d;hp=3d2b7a0b9ce3d2120ae8227ea319675f192f2dbf;hpb=96ebe67e954961b3c45067cd239082c0d43cd009;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONVCluster.h b/MUON/AliMUONVCluster.h index 3d2b7a0b9ce..b86a5af5f8e 100644 --- a/MUON/AliMUONVCluster.h +++ b/MUON/AliMUONVCluster.h @@ -24,9 +24,6 @@ class AliMUONVCluster : public TObject { /// Clear method (used by TClonesArray) virtual void Clear(Option_t*) = 0; - /// Create a copy of the current cluster - virtual AliMUONVCluster* CreateCopy() const = 0; - /// Set coordinates (cm) virtual void SetXYZ(Double_t x, Double_t y, Double_t z) = 0; /// Return coordinate X (cm) @@ -54,7 +51,7 @@ class AliMUONVCluster : public TObject { /// Build a single integer with id information static UInt_t BuildUniqueID(Int_t chamberId, Int_t detElemId, Int_t clusterIndex) - {return ((chamberId << 28) | (detElemId << 17) | (clusterIndex));} + {return (((chamberId & 0xF) << 28) | ((detElemId & 0x7FF) << 17) | (clusterIndex & 0x1FFFF));} /// Return chamber id (0..), part of the uniqueID static Int_t GetChamberId(UInt_t uniqueID) {return (uniqueID & 0xF0000000) >> 28;} /// Return detection element id, part of the uniqueID @@ -80,6 +77,11 @@ class AliMUONVCluster : public TObject { /// Return chi2 of cluster virtual Double_t GetChi2() const = 0; + /// Set the corresponding MC track number + virtual void SetMCLabel(Int_t label) = 0; + /// Return the corresponding MC track number + virtual Int_t GetMCLabel() const = 0; + virtual void Print(Option_t *option = "") const;