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

refactor: Rework particle selection in Examples #3742

Merged
merged 9 commits into from
Oct 18, 2024

Conversation

andiwand
Copy link
Contributor

@andiwand andiwand commented Oct 16, 2024

  • remove TruthSeedRanges as this a duplication of ParticleSelector
  • enhance ParticleSelector by also input/output final particle selections which are necessary to access the number of hits
  • raise some pT cuts to the usual 1 GeV
  • handle downstream changes

blocked by

@andiwand andiwand added this to the next milestone Oct 16, 2024
@github-actions github-actions bot added Infrastructure Changes to build tools, continous integration, ... Component - Examples Affects the Examples module labels Oct 16, 2024
Copy link

github-actions bot commented Oct 16, 2024

📊: Physics performance monitoring for 79be3ff

Full contents

physmon summary

@github-actions github-actions bot added the Component - Fatras Affects the Fatras module label Oct 16, 2024
@andiwand andiwand added the 🛑 blocked This item is blocked by another item label Oct 16, 2024
@andiwand andiwand marked this pull request as ready for review October 16, 2024 23:10
kodiakhq bot pushed a commit that referenced this pull request Oct 17, 2024
Currently Fatras might abort before reaching the pointer where we initialize the particle. This leads to desynchronization between initial and final particles which will then lead to warning/error logs downstream

```
ParticleSele   WARNING   No final particle found for 4|11|169|0|0
```

The initial call of the actor is now caught be checking the propagation stage which then initializes the result object gracefully.

Discovered in #3742
@github-actions github-actions bot removed the Component - Fatras Affects the Fatras module label Oct 18, 2024
@andiwand andiwand added automerge and removed 🛑 blocked This item is blocked by another item labels Oct 18, 2024
Copy link

@kodiakhq kodiakhq bot merged commit 26d18cb into acts-project:main Oct 18, 2024
42 checks passed
@andiwand andiwand deleted the ex-rework-particle-selection branch October 18, 2024 18:25
kodiakhq bot pushed a commit that referenced this pull request Oct 19, 2024
Adding `TrackFitterPerformanceWriter` to the track finding jobs in addition to `CKFPerformanceWriter`.

blocked by 
- #3742
kodiakhq bot pushed a commit that referenced this pull request Oct 19, 2024
I usually expect some accumulated plots in the performance writers we can directly look at. At the same time the `CKFPerformanceWriter` is generic enough to write the performance for any finder.

Therefore I propose to
- Rename `TrackFinderPerformanceWriter` to `TrackFinderNTupleWriter` (this pr)
- (and later) Rename `CKFPerformanceWriter` to `TrackFinderPerformanceWriter`

blocked by 
- #3742
kodiakhq bot pushed a commit that referenced this pull request Oct 19, 2024
Followup of #3737

I usually expect some accumulated plots in the performance writers we can directly look at. At the same time the `CKFPerformanceWriter` is generic enough to write the performance for any finder.

Therefore I propose to
- Rename `TrackFinderPerformanceWriter` to `TrackFinderNTupleWriter` (#3737)
- Rename `CKFPerformanceWriter` to `TrackFinderPerformanceWriter` (this pr)

blocked by 
- #3742
- #3737
@paulgessinger paulgessinger modified the milestones: next, v37.2.0 Oct 24, 2024
kodiakhq bot pushed a commit that referenced this pull request Nov 2, 2024
After removing `TruthSeedRanges` with #3742 we can also safely remove `TruthSeedSelector` which does very much the same as the `ParticleSelector` by now.
Rosie-Hasan pushed a commit to Rosie-Hasan/acts that referenced this pull request Nov 13, 2024
Currently Fatras might abort before reaching the pointer where we initialize the particle. This leads to desynchronization between initial and final particles which will then lead to warning/error logs downstream

```
ParticleSele   WARNING   No final particle found for 4|11|169|0|0
```

The initial call of the actor is now caught be checking the propagation stage which then initializes the result object gracefully.

Discovered in acts-project#3742
Rosie-Hasan pushed a commit to Rosie-Hasan/acts that referenced this pull request Nov 13, 2024
- remove `TruthSeedRanges` as this a duplication of `ParticleSelector `
- enhance `ParticleSelector` by also input/output final particle selections which are necessary to access the number of hits
- raise some pT cuts to the usual 1 GeV
- handle downstream changes

blocked by
- acts-project#3744
Rosie-Hasan pushed a commit to Rosie-Hasan/acts that referenced this pull request Nov 13, 2024
Adding `TrackFitterPerformanceWriter` to the track finding jobs in addition to `CKFPerformanceWriter`.

blocked by 
- acts-project#3742
Rosie-Hasan pushed a commit to Rosie-Hasan/acts that referenced this pull request Nov 13, 2024
…ject#3737)

I usually expect some accumulated plots in the performance writers we can directly look at. At the same time the `CKFPerformanceWriter` is generic enough to write the performance for any finder.

Therefore I propose to
- Rename `TrackFinderPerformanceWriter` to `TrackFinderNTupleWriter` (this pr)
- (and later) Rename `CKFPerformanceWriter` to `TrackFinderPerformanceWriter`

blocked by 
- acts-project#3742
Rosie-Hasan pushed a commit to Rosie-Hasan/acts that referenced this pull request Nov 13, 2024
Followup of acts-project#3737

I usually expect some accumulated plots in the performance writers we can directly look at. At the same time the `CKFPerformanceWriter` is generic enough to write the performance for any finder.

Therefore I propose to
- Rename `TrackFinderPerformanceWriter` to `TrackFinderNTupleWriter` (acts-project#3737)
- Rename `CKFPerformanceWriter` to `TrackFinderPerformanceWriter` (this pr)

blocked by 
- acts-project#3742
- acts-project#3737
Rosie-Hasan pushed a commit to Rosie-Hasan/acts that referenced this pull request Nov 13, 2024
After removing `TruthSeedRanges` with acts-project#3742 we can also safely remove `TruthSeedSelector` which does very much the same as the `ParticleSelector` by now.
Rosie-Hasan pushed a commit to Rosie-Hasan/acts that referenced this pull request Nov 20, 2024
After removing `TruthSeedRanges` with acts-project#3742 we can also safely remove `TruthSeedSelector` which does very much the same as the `ParticleSelector` by now.
kodiakhq bot pushed a commit that referenced this pull request Dec 6, 2024
…in Examples (#3947)

This clears out an oversight in a previous PR #3742 where I replaced numbers of measurements with number of hits. This number can be different and should not be confused.

I add an optional input for the particle to measurement map which is then queried if present and used for the number of measurement cuts.

blocked by:
- #3944

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

## Release Notes

- **New Features**
  - Enhanced particle selection with new configuration options for minimum and maximum hit counts.
  - Updated particle selection criteria to focus on hit counts instead of measurement counts.

- **Bug Fixes**
  - Improved validation checks for input measurements to ensure proper initialization.

- **Documentation**
  - Updated comments and documentation to reflect changes in parameter naming from "measurements" to "hits."

- **Tests**
  - Adjusted test cases to align with the new parameter naming conventions.

- **Chores**
  - Minor code formatting and organization improvements throughout various scripts.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changes Performance Component - Examples Affects the Examples module Infrastructure Changes to build tools, continous integration, ...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants