Skip to content

Commit

Permalink
fix: Propagate initial vertex time variance for AMVF w/o time (#2936)
Browse files Browse the repository at this point in the history
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 Feb 13, 2024
1 parent 86e62ab commit b50dd08
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 b50dd08

Please sign in to comment.