Skip to content

Commit 296a183

Browse files
authored
Merge pull request #45 from alibuild/alibot-cleanup-11570
Please consider the following formatting changes to #11570
2 parents 9598848 + 69d0646 commit 296a183

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

ALICE3/Core/FastTracker.cxx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -494,18 +494,18 @@ int FastTracker::FastTrack(o2::track::TrackParCov inputTrack, o2::track::TrackPa
494494
return nIntercepts;
495495

496496
// generate efficiency
497-
float eff = 1.;
498-
for (int i = 0; i < kMaxNumberOfDetectors; i++) {
499-
float iGoodHit = goodHitProbability[i];
500-
if (iGoodHit <= 0)
501-
continue;
497+
float eff = 1.;
498+
for (int i = 0; i < kMaxNumberOfDetectors; i++) {
499+
float iGoodHit = goodHitProbability[i];
500+
if (iGoodHit <= 0)
501+
continue;
502502

503-
eff *= iGoodHit;
503+
eff *= iGoodHit;
504+
}
505+
if (mApplyEffCorrection) {
506+
if (gRandom->Uniform() > eff)
507+
return -8;
504508
}
505-
if (mApplyEffCorrection) {
506-
if (gRandom->Uniform() > eff)
507-
return -8;
508-
}
509509

510510
outputTrack.setCov(inwardTrack.getCov());
511511
outputTrack.checkCovariance();

0 commit comments

Comments
 (0)