make sure that a valid covariance matrix is available after Hesse.
This commit is contained in:
parent
c4d52df3bc
commit
60580a920f
@ -1138,7 +1138,12 @@ Bool_t PFitter::ExecuteHesse()
|
|||||||
TString str = TString::Format("Hesse: %.3f sec", (end-start)/1.0e3);
|
TString str = TString::Format("Hesse: %.3f sec", (end-start)/1.0e3);
|
||||||
fElapsedTime.push_back(str);
|
fElapsedTime.push_back(str);
|
||||||
if (!mnState.IsValid()) {
|
if (!mnState.IsValid()) {
|
||||||
cerr << endl << ">> PFitter::ExecuteHesse(): **WARNING** Hesse encountered some problems!";
|
cerr << endl << ">> PFitter::ExecuteHesse(): **WARNING** Hesse encountered a problem! The state found is invalid.";
|
||||||
|
cerr << endl;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!mnState.HasCovariance()) {
|
||||||
|
cerr << endl << ">> PFitter::ExecuteHesse(): **WARNING** Hesse encountered a problem! No covariance matrix available.";
|
||||||
cerr << endl;
|
cerr << endl;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user