Skip to content

Commit fe2f93e

Browse files
committed
Fix method MCTrackInfo::getNITSClusCont
1 parent b83452a commit fe2f93e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Detectors/GlobalTrackingWorkflow/study/src/TrackMCStudyTypes.cxx

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ int MCTrackInfo::getNITSClusCont() const
2525
int longest = 0, current = 0;
2626
for (int i = 0; i < 7; i++) {
2727
if (pattITSCl & (0x1 << i)) {
28-
longest = ++current;
28+
if (++current > longest) {
29+
longest = current;
30+
}
2931
} else {
3032
current = 0;
3133
}

0 commit comments

Comments
 (0)