From: sgorbuno Date: Thu, 22 Jan 2009 22:36:00 +0000 (+0000) Subject: bug fixed X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=67d14a154e71a881b0f313ab0f46edeba0aefb96 bug fixed --- diff --git a/HLT/TPCLib/tracking-ca/AliHLTTPCCATrackletConstructor.cxx b/HLT/TPCLib/tracking-ca/AliHLTTPCCATrackletConstructor.cxx index cdba9c5b809..0c0d24bc46c 100644 --- a/HLT/TPCLib/tracking-ca/AliHLTTPCCATrackletConstructor.cxx +++ b/HLT/TPCLib/tracking-ca/AliHLTTPCCATrackletConstructor.cxx @@ -438,7 +438,7 @@ GPUd() void AliHLTTPCCATrackletConstructor::Thread r.fStage = 2; } - else if( iSync<=3+159*2+1+159*2 ) + else if( iSync<=3+159*2+1+159*2+1 ) { int iRow, nextRow; @@ -449,7 +449,7 @@ GPUd() void AliHLTTPCCATrackletConstructor::Thread nextRow = iRow+1; if( nextRow>158 ) nextRow = 158; }else{ - iRow = 158 - (iSync - 4-159*2-1)/2; + iRow = 159 - (iSync - 4-159*2)/2; //if( iBlock==0 && iThread==0 ) myprintf2(iSync,iRow); if( iRow >= s.fMaxStartRow ) return; nextRow = iRow-1; @@ -470,7 +470,7 @@ GPUd() void AliHLTTPCCATrackletConstructor::Thread } } - else if( iSync== 4+159*4 +1+1 ) // 642 + else if( iSync== 4+159*4 +1+1+1 ) // 642 { StoreTracklet( nBlocks, nThreads, iBlock, iThread, iSync, //SG!!! diff --git a/HLT/TPCLib/tracking-ca/AliHLTTPCCATrackletConstructor.h b/HLT/TPCLib/tracking-ca/AliHLTTPCCATrackletConstructor.h index a2195d5b3f4..12e8cc5e55f 100644 --- a/HLT/TPCLib/tracking-ca/AliHLTTPCCATrackletConstructor.h +++ b/HLT/TPCLib/tracking-ca/AliHLTTPCCATrackletConstructor.h @@ -75,7 +75,7 @@ class AliHLTTPCCATrackletConstructor Int_t fHitStoreOffset; // offset in the global array }; - GPUd() static Int_t NThreadSyncPoints(){ return 4+159*4 +1+1; } + GPUd() static Int_t NThreadSyncPoints(){ return 4+159*4 +1+1+1; } GPUd() static void Thread( Int_t nBlocks, Int_t nThreads, Int_t iBlock, Int_t iThread, Int_t iSync, AliHLTTPCCASharedMemory &s, AliHLTTPCCAThreadMemory &r,