Fix in cluster usage counter
authorshahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 27 Apr 2013 20:51:06 +0000 (20:51 +0000)
committershahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 27 Apr 2013 20:51:06 +0000 (20:51 +0000)
ITS/UPGRADE/AliITSUClusterPix.h

index 9b7f324..9e67721 100644 (file)
@@ -104,7 +104,8 @@ inline void AliITSUClusterPix::DecClUsage() {
 //______________________________________________________
 inline void AliITSUClusterPix::SetClUsage(Int_t n) {
   // set cluster usage counter
-  fNxNzN &= ((n&0xff)<<24)&0x00ffffff; 
+  fNxNzN &= 0x00ffffff;
+  fNxNzN |= (n&0xff)<<24;
   if (n<2) SetBit(kShared,kFALSE);
   if (!n)  SetBit(kUsed,kFALSE);
 }