]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/TPCLib/AliHLTTPCHWClusterTransformComponent.cxx
bugfix: correct calculation of padrow
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCHWClusterTransformComponent.cxx
index 55a3ad0858d5fe677addef6b3e07902a79004aa6..dc1dd029c929a612a35470eb79ea06bd20f7281f 100644 (file)
@@ -359,7 +359,7 @@ int AliHLTTPCHWClusterTransformComponent::DoEvent(const AliHLTComponentEventData
             }
 
             AliHLTTPCRawCluster &c = outputRaw->fClusters[outputRaw->fCount];
-            c.SetPadRow( (word0>>24)&0x3f + AliHLTTPCTransform::GetFirstRow(minPartition));
+            c.SetPadRow( ((word0>>24)&0x3f) + AliHLTTPCTransform::GetFirstRow(minPartition));
             c.SetPad(    *((Float_t*)&buffer[nWords+1]));  
             c.SetTime(   *((Float_t*)&buffer[nWords+2]));
             c.SetSigmaY2(*((Float_t*)&buffer[nWords+3]));
@@ -368,7 +368,7 @@ int AliHLTTPCHWClusterTransformComponent::DoEvent(const AliHLTComponentEventData
             c.SetQMax(0); // TODO               
 
             // skip clusters below threshold  
-            if( c.GetCharge()<fChargeThreshold ) continue;  
+            if( c.GetCharge()<(int)fChargeThreshold ) continue;  
             // store cluster and continue
             outputRaw->fCount++;