Skip to content

Commit

Permalink
allow recovering the matched track index when we check the first matc…
Browse files Browse the repository at this point in the history
…h in the array of matches, with index 0
  • Loading branch information
gconesab authored and hristov committed Dec 10, 2015
1 parent 8ce6e5a commit 1fa54e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion STEER/ESD/AliESDCaloCluster.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ void AliESDCaloCluster::SetPosition(Float_t *x)
//______________________________________________________________________________
Int_t AliESDCaloCluster::GetTrackMatchedIndex(Int_t i) const
{
if (fTracksMatched && i > 0 && i < fTracksMatched->GetSize()) {
if (fTracksMatched && i >= 0 && i < fTracksMatched->GetSize()) {
return fTracksMatched->At(i);
}
else {
Expand Down

0 comments on commit 1fa54e7

Please sign in to comment.