Skip to content

Make ndf into float in edm4eic::Vertex - #182

Merged
veprbl merged 3 commits into
mainfrom
pr/float_ndf
Nov 4, 2026
Merged

veprbl merged 3 commits into
mainfrom
pr/float_ndf

Conversation

@veprbl

@veprbl veprbl commented Oct 19, 2026

Copy link
Copy Markdown
Member

Resolves: eic/EICrecon#3032

Upstream EDM Acts::Vertex uses float for both chiSquared and numberDoF:
https://github.com/acts-project/acts/blob/3bb5e23533409f98878c2d0510af313adcd52efa/Core/include/Acts/Vertexing/Vertex.hpp#L120

That is needed to support Annealing-type vertexing like AMVF:
https://github.com/acts-project/acts/blob/3bb5e23533409f98878c2d0510af313adcd52efa/Core/include/Acts/Vertexing/detail/KalmanVertexUpdaterImpl.hpp#L267

Alternatively we could add another field. This ndf is not Chi^2 distribution parameter. But then what would be the name is a question.

cc @osbornjd @wdconinc @Austinblabla @ShujieL

@veprbl
veprbl requested a review from a team as a code owner October 19, 2026 15:45
wdconinc
wdconinc previously approved these changes Oct 19, 2026

@wdconinc wdconinc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Minimal and perfectly backwards compatible for reasonable ndf < 2^24 :-)

@veprbl

veprbl commented Oct 19, 2026

Copy link
Copy Markdown
Member Author

Alternatively we can switch to adopt edm4hep::Vertex: https://github.com/key4hep/EDM4hep/blob/b26cd4d65a3a550988daa4a11e1daf805ed30c1e/edm4hep.yaml#L578

@veprbl

veprbl commented Oct 19, 2026

Copy link
Copy Markdown
Member Author

... but then one needs to store this "ndf" into unnamed parameters array.

ruse-traveler
ruse-traveler previously approved these changes Oct 21, 2026

@ruse-traveler ruse-traveler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛟

@veprbl
veprbl dismissed stale reviews from ruse-traveler and wdconinc via 30ca5fb November 4, 2026 17:23
@veprbl
veprbl requested a review from kkauder November 4, 2026 17:25
@veprbl

veprbl commented Nov 4, 2026

Copy link
Copy Markdown
Member Author

This was discussed Today in https://indico.bnl.gov/event/35288/, the consensus is that we are fine with aligning closer to Acts EDM. A comment by @kkauder (just addressed) was that we have to provide reasonable documentation for ndf that is float.

Comment thread edm4eic.yaml Resolved
@veprbl
veprbl merged commit 48b7b6c into main Nov 4, 2026
4 of 5 checks passed
@veprbl
veprbl deleted the pr/float_ndf branch November 4, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SecondaryVertexFinder: AMVF vertex ndf

4 participants