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

feat: add track associations based on raw hit association, weighted by number of hits #1564

Merged
merged 11 commits into from
Aug 14, 2024

Conversation

wdconinc
Copy link
Contributor

@wdconinc wdconinc commented Aug 9, 2024

Briefly, what does this PR introduce?

This PR builds on #1535 to create edm4eic::Track associations to edm4hep::MCParticles. Results in weights like this:

events->Draw("CentralCKFTrackAssociations.weight")

image

events->Draw("sqrt(MCParticles[_CentralCKFSeededTrackAssociations_sim.index].momentum.x**2+MCParticles[_CentralCKFSeededTrackAssociations_sim.index].momentum.y**2+MCParticles[_CentralCKFSeededTrackAssociations_sim.index].momentum.z**2)")

image

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue: track associations)
  • 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.

Does this PR change default behavior?

No.

@wdconinc wdconinc requested a review from bschmookler August 9, 2024 15:34
@github-actions github-actions bot added topic: tracking Relates to tracking reconstruction topic: PID Relates to PID reconstruction topic: far-forward Far forward reconstruction topic: barrel topic: forward labels Aug 9, 2024
bschmookler
bschmookler previously approved these changes Aug 9, 2024
Copy link
Contributor

@bschmookler bschmookler left a comment

Choose a reason for hiding this comment

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

Looks good to me

veprbl
veprbl previously approved these changes Aug 14, 2024
Copy link
Member

@veprbl veprbl left a comment

Choose a reason for hiding this comment

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

Everything looks good to me.

@wdconinc wdconinc dismissed stale reviews from veprbl and bschmookler via 47d071d August 14, 2024 01:26
@wdconinc wdconinc requested a review from veprbl August 14, 2024 01:28
@wdconinc wdconinc enabled auto-merge August 14, 2024 01:28
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
7.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@wdconinc
Copy link
Contributor Author

I propose to ignore sonarcloud since I don't see why there is any duplicated code here...

@wdconinc wdconinc added this pull request to the merge queue Aug 14, 2024
Merged via the queue into main with commit 0d5b8d8 Aug 14, 2024
84 of 87 checks passed
@wdconinc wdconinc deleted the track-associations branch August 14, 2024 02:24
github-merge-queue bot pushed a commit that referenced this pull request Aug 22, 2024
### Briefly, what does this PR introduce?
The #1564 had implemented meaningful
associations based on hits used. That information became available for
Tracks, but end users use ReconstructedParticles, and that's what we'd
like to have implemented in this PR.

Closes: #1356

### What kind of change does this PR introduce?
- [ ] Bug fix (issue #__)
- [x] 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

There will be new warnings like
```
[PFRICH:RICHEndcapNLUTPID] [warning] Found a duplicate association for ReconstructedParticle at index 18
[PFRICH:RICHEndcapNLUTPID] [warning] The previous MCParticle was at 149 and the duplicate is at 200
```
those are mostly harmless and are to be addressed separately.

### Does this PR change default behavior?
Yes

---------

Co-authored-by: Wouter Deconinck <[email protected]>
@veprbl veprbl added this to the 24.09.0 milestone Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: barrel topic: far-forward Far forward reconstruction topic: forward topic: PID Relates to PID reconstruction topic: tracking Relates to tracking reconstruction
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants