Skip to content

Commit

Permalink
Merge pull request #91 from kmcdermo/full-det-tracking
Browse files Browse the repository at this point in the history
QUICK: bug fix for counting of unique layers
  • Loading branch information
osschar authored Jul 28, 2017
2 parents 15d7e76 + f8f01bf commit 2f23f99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Track.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,10 @@ class Track
{
int lyr_cnt = 0;
int prev_lyr = -1;
for (int ihit = 0; ihit < lastHitIdx_ ; ++ihit)
for (int ihit = 0; ihit <= lastHitIdx_ ; ++ihit)
{
int h_lyr = hitsOnTrk_[ihit].layer;
if (h_lyr >= 0 && h_lyr != prev_lyr)
if (h_lyr >= 0 && hitsOnTrk_[ihit].index >= 0 && h_lyr != prev_lyr)
{
++lyr_cnt;
prev_lyr = h_lyr;
Expand Down

0 comments on commit 2f23f99

Please sign in to comment.