Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Association between Reco Cluster and ReconstructedParticle #52

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jdbrice
Copy link

@jdbrice jdbrice commented Sep 28, 2023

Briefly, what does this PR introduce?

Association container for edm4eic::Cluster and edm4eic::ReconstructedParticle

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 - plan to present at SC meeting on Oct 4th

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

Does this PR change default behavior?

Additional notes / comments

  • This assumes the change proposed and currently discussed by @veprbl to remove uint32_t IDs from Association containers.

@jdbrice jdbrice requested a review from a team as a code owner September 28, 2023 02:02
Comment on lines +495 to +505

edm4eic::TrackClusterMatch:
Description: "Association between a Cluster and a ReconstructedParticle"
Author : "D. Brandenburg"
Members:
- uint32_t cluID // Index of corresponding cluster (position in cluster array)
- uint32_t plcID // Index of corresponding ReconstructedParticle (position in reco particle array)
- float weight // weight of this association
OneToOneRelations:
- edm4eic::Cluster clu // reference to the cluster
- edm4eic::ReconstructedParticle plc // reference to the Reco particle
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd like to see the following changes to move forward:

  1. rename clu --> cluster (clusterID, cluster), which is in-line with how we call relations to clusters in the rest of the data model
  2. rename plc --> track ('trackID, track`)
  3. add a new entry commented-out entry below trackID that reads: # - int32_t trackID. // Index of the corresponding Track (position in the track particle array), and a similar line in the OneToOneRelations
  4. Add to the comments for the ReconstructedParticle association something to the extend that this is a placeholder and will be removed in favor of a link to Track once the reconstruction is properly updated.

With these changes we can move forward and merge.

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.

None yet

3 participants