]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
minor bugfix: error condition checked before padrow offset is added:
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 9 Aug 2011 08:24:14 +0000 (08:24 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 9 Aug 2011 08:24:14 +0000 (08:24 +0000)
HLT/TPCLib/AliHLTTPCHWClusterTransformComponent.cxx

index 36a585c0c85255e6e3c9585513c0ec9d09e5eb6a..f8b55a1ce42831db864a07badb5d7488fee18c9c 100644 (file)
@@ -250,7 +250,7 @@ int AliHLTTPCHWClusterTransformComponent::DoEvent(const AliHLTComponentEventData
         }
 
         AliHLTTPCSpacePointData& c=outPtr->fSpacePoints[outPtr->fSpacePointCnt];
-        int padrow=fpDecoder->GetPadRow(cl) + AliHLTTPCTransform::GetFirstRow(minPartition);
+        int padrow=fpDecoder->GetPadRow(cl);
         if (padrow<0) {
           // something wrong here, padrow is stored in the cluster header
           // word which has bit pattern 0x3 in bits bit 30 and 31 which was
@@ -258,6 +258,7 @@ int AliHLTTPCHWClusterTransformComponent::DoEvent(const AliHLTComponentEventData
           ALIHLTERRORGUARD(1, "can not read cluster header word, skipping %d of %d cluster(s)", nofClusters-cl, nofClusters);
           break;
         }
+        padrow+=AliHLTTPCTransform::GetFirstRow(minPartition);
         AliHLTUInt32_t charge=fpDecoder->GetCharge(cl);
         // skip clusters below threshold  
         if( charge<fChargeThreshold ) continue;  
@@ -334,13 +335,14 @@ int AliHLTTPCHWClusterTransformComponent::DoEvent(const AliHLTComponentEventData
             break;
           }
           AliHLTTPCRawCluster &c = outputRaw->fClusters[outputRaw->fCount];
-          int padrow=fpDecoder->GetPadRow(cl) + AliHLTTPCTransform::GetFirstRow(minPartition);
+          int padrow=fpDecoder->GetPadRow(cl);
           if (padrow<0) {
             // something wrong here, padrow is stored in the cluster header
             // word which has bit pattern 0x3 in bits bit 30 and 31 which was
             // not recognized
             break;
           }
+          padrow+=AliHLTTPCTransform::GetFirstRow(minPartition);
           AliHLTUInt32_t charge= fpDecoder->GetCharge(cl);
           // skip clusters below threshold  
           if( charge<fChargeThreshold ) continue;