Skip to content

Commit

Permalink
add only meaningful states
Browse files Browse the repository at this point in the history
  • Loading branch information
swagata87 committed Aug 31, 2022
1 parent 1701c24 commit f3afc63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion TrackingTools/GsfTracking/src/GsfMultiStateUpdator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ TrajectoryStateOnSurface GsfMultiStateUpdator::update(const TrajectoryStateOnSur
int i = 0;
for (auto const& tsosI : predictedComponents) {
TrajectoryStateOnSurface updatedTSOS = KFUpdator().update(tsosI, aRecHit);
if (updatedTSOS.isValid() && updatedTSOS.localError().valid()) {

double det = 0;
if (updatedTSOS.isValid() && updatedTSOS.localError().valid() && updatedTSOS.localError().posDef() &&
(updatedTSOS.curvilinearError().matrix().Det2(det)) && det > 0) {
result.addState(TrajectoryStateOnSurface(weights[i],
updatedTSOS.localParameters(),
updatedTSOS.localError(),
Expand Down

0 comments on commit f3afc63

Please sign in to comment.