bug fixed
authorsgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Jan 2009 22:36:00 +0000 (22:36 +0000)
committersgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Jan 2009 22:36:00 +0000 (22:36 +0000)
HLT/TPCLib/tracking-ca/AliHLTTPCCATrackletConstructor.cxx
HLT/TPCLib/tracking-ca/AliHLTTPCCATrackletConstructor.h

index cdba9c5b809824922cd344fd61fea263e8f9bef4..0c0d24bc46c414f19dec346659b764a321c36bee 100644 (file)
@@ -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!!!
index a2195d5b3f4a69cd43b88f552a63c8cb6f0cce52..12e8cc5e55f1578e1fa649adefe9b71cc578fdc2 100644 (file)
@@ -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,