Skip to content

Commit

Permalink
fix: Propagate initial vertex time variance for AMVF w/o time (acts-p…
Browse files Browse the repository at this point in the history
…roject#2936)

Logs like
```
21:16:17    VertexPerfor   WARNING   Nonpositive variance after vertex fit: Var(T) = 0 <= 0.
```
are gone after this change.

To me it seems more sensical to propagate the initial time variance instead of hard setting it to `0` which causes the cov matrix to be invalid.
  • Loading branch information
andiwand authored and asalzburger committed May 21, 2024
1 parent 4fc0bb1 commit 5589172
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 2 deletions.
Binary file modified CI/physmon/reference/performance_amvf_gridseeder_ttbar_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_amvf_orthogonal_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_amvf_seeded_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_amvf_truth_estimated_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_amvf_truth_smeared_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_amvf_ttbar_hist.root
Binary file not shown.
2 changes: 0 additions & 2 deletions Core/src/Vertexing/KalmanVertexUpdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,7 @@ void update(Vector4& vtxPos, SquareMatrix4& vtxCov,

// Updating the vertex
if constexpr (nDimVertex == 3) {
vtxPos.setZero();
vtxPos.head<3>() = cache.newVertexPos.template head<3>();
vtxCov.setZero();
vtxCov.template topLeftCorner<3, 3>() =
cache.newVertexCov.template topLeftCorner<3, 3>();
} else if constexpr (nDimVertex == 4) {
Expand Down

0 comments on commit 5589172

Please sign in to comment.