Skip to content

Commit c63c0c6

Browse files
authored
actual check if signal fit converged
1 parent eee1fee commit c63c0c6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Modules/GLO/include/GLO/Helpers.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ struct K0sFitter {
100100
mSignalAndBackground->SetParameter(Parameters::Mass, mMassK0s);
101101
mSignalAndBackground->SetParameter(Parameters::Sigma, 0.005);
102102
mSignalAndBackground->SetParLimits(Parameters::Sigma, 1e-6, 1);
103-
h->Fit(mSignalAndBackground.get(), (add) ? "RMQ" : "RMQ0");
104-
return true;
103+
return h->Fit(mSignalAndBackground.get(), (add) ? "RMQ" : "RMQ0") == 0;
105104
}
106105

107106
auto getMass() const noexcept

0 commit comments

Comments
 (0)