Skip to content

Conversation

@bishoyDHD
Copy link

Briefly, what does this PR introduce?

This adds secondary vertex finder to the EICrecon.

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue #__)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

No need to make changes to existing code. Full compliance with main EICrecon repo has been maintained throughout

Does this PR change default behavior?

No change to default behaviour

bishoyDHD and others added 30 commits September 2, 2024 13:38
@bishoyDHD
Copy link
Author

Looks like we have two comments unaddressed from the first round of review. One on using spdlog, which we might punt on. And another about units of initialVariances and moving that to config.

Moved to Config

Copy link
Contributor

@wdconinc wdconinc left a comment

Choose a reason for hiding this comment

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

Two major remaining comments from my side at this point:

  • We should move the creation and initialization of algorithmic structures that are event-independent into the init function, not recreate them for each event in the process function.
  • We should not base this algorithm on the input from ActsExamples::Trajectories, but on the input from ReconstructedParticles. That will avoid the combinatorics of the matching loop. (Even if you don't do this, the matching loop should use an early break.)

float maxDistToLinPoint = 5.5 * Acts::UnitConstants::mm;
// Bin extent in z-direction
float spatialBinExtent = 25 * Acts::UnitConstants::um;
Acts::Vector4 initialVariances = Acts::Vector4{1e+2, 1e+2, 1e+2, 1e+8};
Copy link
Contributor

Choose a reason for hiding this comment

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

Still needs units.

@@ -0,0 +1,39 @@
#pragma once
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing license header.

: SecondaryVertexFinderAlgorithm{name,
{"inputReconstructedParticles", "inputActsTrajectories"},
{"outputPrimaryVertices", "outputSecondaryVertices"},
""} {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing docstring.

Comment on lines +399 to +400
"PrimaryTrackVerticesAMVF",
"SecondaryTrackVerticesAMVF",
Copy link
Member

Choose a reason for hiding this comment

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

Okay, so our IVF collection is CentralTrackVertices, we can't just replace Central with Primary.

Suggested change
"PrimaryTrackVerticesAMVF",
"SecondaryTrackVerticesAMVF",
"CentralTrackVerticesAMVF",
"CentralTrackSecondaryVerticesAMVF",

Copy link
Member

Choose a reason for hiding this comment

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

Or if we are to be consistent with Xin's collections it would be

Suggested change
"PrimaryTrackVerticesAMVF",
"SecondaryTrackVerticesAMVF",
"PrimaryVerticesAMVF",
"SecondaryVerticesAMVF",

I wonder if primaries and secondaries produced by this factory can overlap?

This PR applies the include-what-you-use fixes as suggested by
https://github.com/eic/EICrecon/actions/runs/19345829824.
Please merge this PR into the branch `secvertexAMVF`
to resolve failures in PR #1915.

Auto-generated by [create-pull-request][1]

[1]: https://github.com/peter-evans/create-pull-request

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: tracking Relates to tracking reconstruction

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants