Skip to content

Commit

Permalink
temp fixes - proper fix in master
Browse files Browse the repository at this point in the history
  • Loading branch information
tbreitne committed Jun 30, 2015
1 parent 476b4d9 commit 3103820
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HLT/ITS/trackingSAP/AliHLTITSSAPTrackerComponent.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ int AliHLTITSSAPTrackerComponent::DoEvent
}
}
else {
HLTWarning("No SPD vertex, skip ITS standalone reconstruction");
//HLTWarning("No SPD vertex, skip ITS standalone reconstruction");
return 0;
}
}
Expand Down
7 changes: 5 additions & 2 deletions HLT/ITS/trackingSAP/AliITSSAPTracker.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,12 @@ Bool_t AliITSSAPTracker::FindTracklets()
return kFALSE;
}
float rv2 = fSPDVertex->GetX()*fSPDVertex->GetX()+fSPDVertex->GetY()*fSPDVertex->GetY();
if (rv2>0.25*fgkRLayITS[kLrBeamPime]*fgkRLayITS[kLrBeamPime]) {
// AliInfo("SPD vertex is too far from beam line");
float rv2_limit = 0.25*fgkRLayITS[kLrBeamPime]*fgkRLayITS[kLrBeamPime];
if (rv2>rv2_limit) {
AliInfo(Form("SPD vertex is too far from beam line: rv2=%f, rv2limit=%f", rv2, rv2_limit));
#ifdef _DEBUG_
fSPDVertex->Print();
#endif
return kFALSE;
}
fPhiShiftSc = fPhiShift*TMath::Abs(fBz/5.0);
Expand Down
12 changes: 12 additions & 0 deletions HLT/TPCLib/tracking-ca/AliHLTTPCCATracker.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -754,8 +754,20 @@ GPUh() void AliHLTTPCCATracker::WriteOutput()

const AliHLTTPCCARow &row = fData.Row( iRow );

if (ih >= row.NHits())
{
printf("Array out of bounds access (Sector Row) (Hit %d / %d - NumC %d): Sector %d Row %d Index %d\n", ith, iTrack.NHits(), fClusterData->NumberOfClusters(), fParam.ISlice(), iRow, ih);
fflush(stdout);
continue;
}
int clusterIndex = fData.ClusterDataIndex( row, ih );

if (clusterIndex >= fClusterData->NumberOfClusters())
{
printf("Array out of bounds access (Cluster Data) (Hit %d / %d - NumC %d): Sector %d Row %d Hit %d, Clusterdata Index\n", ith, iTrack.NHits(), fClusterData->NumberOfClusters(), fParam.ISlice(), iRow, ih, clusterIndex);
fflush(stdout);
continue;
}
float origX = fClusterData->X( clusterIndex );
float origY = fClusterData->Y( clusterIndex );
float origZ = fClusterData->Z( clusterIndex );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,8 @@ int AliHLTTPCCAGPUTrackerOpenCL::Reconstruct(AliHLTTPCCASliceOutput** pOutput, A
ResetHelperThreads(0);
return(1);
}

clFinish(ocl->command_queue[0]);

for (int iSlice = 0;iSlice < sliceCountLocal;iSlice++)
{
Expand Down

0 comments on commit 3103820

Please sign in to comment.