Skip to content
Snippets Groups Projects
Commit 7a553224 authored by Markus Prim's avatar Markus Prim
Browse files

Change assertion to throw statements so they can be handled during runtime.

parent 95b67463
Branches
No related tags found
No related merge requests found
......@@ -1114,7 +1114,9 @@ KalmanFitterRefTrack::processTrackPoint(KalmanFitterInfo* fi, const KalmanFitter
}
// check
assert(fi->checkConsistency());
if (not fi->checkConsistency()) {
throw genfit::Exception("Consistency check failed ", __LINE__, __FILE__);
}
}
......@@ -1322,6 +1324,8 @@ KalmanFitterRefTrack::processTrackPointSqrt(KalmanFitterInfo* fi, const KalmanFi
}
// check
assert(fi->checkConsistency());
if (not fi->checkConsistency()) {
throw genfit::Exception("Consistency check failed ", __LINE__, __FILE__);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment