Skip to content

Commit af3993d

Browse files
authored
Merge pull request GenFit#144 from GiacomoXT/main
Require lastPval >= minPval_ in order to mimic older behaviour of DAF
2 parents 58372c4 + d9be2fb commit af3993d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fitters/src/DAF.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void DAF::processTrackWithRep(Track* tr, const AbsTrackRep* rep, bool resortHits
151151
try{
152152
converged = calcWeights(tr, rep, betas_.at(iBeta));
153153
if (!converged && iBeta >= static_cast<unsigned int>(minIterForPval_ - 1) &&
154-
status->getBackwardPVal() > minPval_ && lastPval > minPval_ && fabs(lastPval - status->getBackwardPVal()) < this->deltaPval_) {
154+
status->getBackwardPVal() > minPval_ && lastPval >= minPval_ && fabs(lastPval - status->getBackwardPVal()) < this->deltaPval_) {
155155
if (debugLvl_ > 0) {
156156
debugOut << "converged by Pval = " << status->getBackwardPVal() << " even though weights changed at iBeta = " << iBeta << std::endl;
157157
}

0 commit comments

Comments
 (0)