Skip to content

Conversation

simonge
Copy link
Contributor

@simonge simonge commented Aug 19, 2025

Briefly, what does this PR introduce?

Swaps out the particles reconstructed via the TMVA network for the onnx reconstruction. The particles are added to the ReconstructedParticles collection workflow later to remove unnecessary combinatorics in the tracking and pid stages.

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?

Several intermediate collections have been removed from the output. Anyone using ReconstructedChargedParticles will no longer have the Low-Q2 electrons included.

Does this PR change default behavior?

The resolution of the particles reconstructed from the low-q2 tagger should be slightly improved over the current method.

@github-actions github-actions bot added the topic: far-backward Reconstruction related to far backward detectors label Aug 19, 2025
@simonge
Copy link
Contributor Author

simonge commented Aug 19, 2025

Comparison benchmark plots for the currently trained TMVA vs. onnx networks available on the pythia6 test sample. (Note there is nothing inherently better about the onnx network for the reconstruction just how it was trained)

TMVA being replaced:
image

New onnx reconstruction:
image

simonge pushed a commit that referenced this pull request Aug 19, 2025
…s later (fix: iwyu) (#2019)

This PR applies the include-what-you-use fixes as suggested by
https://github.com/eic/EICrecon/actions/runs/17067207522.
Please merge this PR into the branch
`Swap-Low-Q2-reconstruction-from-TMVA-to-onnx`
to resolve failures in PR #2018.

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>
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

simonge pushed a commit that referenced this pull request Aug 19, 2025
…s later (fix: iwyu) (#2020)

This PR applies the include-what-you-use fixes as suggested by
https://github.com/eic/EICrecon/actions/runs/17071090254.
Please merge this PR into the branch
`Swap-Low-Q2-reconstruction-from-TMVA-to-onnx`
to resolve failures in PR #2018.

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>
@simonge simonge force-pushed the Swap-Low-Q2-reconstruction-from-TMVA-to-onnx branch from 4923428 to f94d87f Compare August 19, 2025 15:16
simonge and others added 6 commits August 20, 2025 13:46
…s later (fix: iwyu) (#2019)

This PR applies the include-what-you-use fixes as suggested by
https://github.com/eic/EICrecon/actions/runs/17067207522.
Please merge this PR into the branch
`Swap-Low-Q2-reconstruction-from-TMVA-to-onnx`
to resolve failures in PR #2018.

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>
@simonge simonge force-pushed the Swap-Low-Q2-reconstruction-from-TMVA-to-onnx branch from f94d87f to 363a72e Compare August 20, 2025 12:49
@github-actions github-actions bot dismissed their stale review August 20, 2025 12:59

No Clang-Tidy warnings found so I assume my comments were addressed

app->Add(
new JOmniFactoryGeneratorT<CollectionCollector_factory<edm4eic::ReconstructedParticle, true>>(
"CombinedReconstructedChargedParticles",
{"ReconstructedChargedParticles", "TaggerTrackerReconstructedParticles"},
Copy link
Member

Choose a reason for hiding this comment

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

This changes definition of ReconstructedChargedParticles to not include FB particles. We probably don't want that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are no clean ways of doing this. Assuming we don't want to replace ReconstructedChargedParticles with a subset collection we need to pass it though another algorithm first, this would mean merging it before the final PID factory, which may be the only reasonable approach but feels unnecessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My alternative proposition is to add a factory which re-evaluates the PID based on the ParticleIDs from all of the PID detectors, as at the moment the PDG given to the particle is only based on the final pid_lut with a relevant cell in the table. This is out of scope of this PR and should probably be handled by someone from the PID groups.

Copy link
Member

Choose a reason for hiding this comment

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

If I understand correctly, the issue is with needing association rewriting. Letting pid_lut algorithm do the rewriting for you is one way. In one of the PRs on calorimetry we've envisioned a generic association rewriting algorithm for such use cases, but wasn't implemented so far.

…s later (fix: iwyu) (#2048)

This PR applies the include-what-you-use fixes as suggested by
https://github.com/eic/EICrecon/actions/runs/17192855642.
Please merge this PR into the branch
`Swap-Low-Q2-reconstruction-from-TMVA-to-onnx`
to resolve failures in PR #2018.

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>
@simonge simonge requested a review from veprbl August 29, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: far-backward Reconstruction related to far backward detectors topic: infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants