]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Make the construction of the unique ID for clusters more robust
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Nov 2007 15:46:32 +0000 (15:46 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Nov 2007 15:46:32 +0000 (15:46 +0000)
(Artur)

MUON/AliMUONVCluster.h

index 932ca856b3d0a86fe53301ff186bcbed180263b0..0c05e68583e3b94bdbc23e965d7e54f5e8d03d66 100644 (file)
@@ -51,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