Skip to content

Allow truth seeder to work with secondary particles - #2797

Merged
wdconinc merged 3 commits into
mainfrom
pr/truth-init-accepts-all
Aug 18, 2026
Merged

Allow truth seeder to work with secondary particles#2797
wdconinc merged 3 commits into
mainfrom
pr/truth-init-accepts-all

Conversation

@DraTeots

Copy link
Copy Markdown
Contributor

Briefly, what does this PR introduce? Please link to any relevant presentations or discussions.

Should fix part 1 of #2746 - allow TruthSeeder to seed secondary particles from e.g. lambdas

What is the urgency of this PR?

  • High (please describe reason below)
  • Medium
  • Low

Current setup makes B0 not working for any decay products, for which (arguably) it is intended. In our case, for example, we can't see the most of Sullivan lambdas via proton+pi- channel (which is ~75% of lambda decays that leave a trace in our detector)

What kind of change does this PR introduce?

Please check if any of the following apply

  • This PR requires changes to geometry (epic PR: __)
  • This PR requires changes to EDM4eic (EDM PR: __)
  • This PR introduces breaking changes. Please describe changes users need to make below.
  • This PR changes default behavior. Please describe changes below.
    Truth finder cuts
    1. any particles with status != 1, i.e. primary particles coming from event generator.
    2. require close to interaction vertex
    3. require minimum momentum
    4. require minimum pseudorapidity
      So 1 and 2 must go and 4 probably be changed in order to start seeding secondaries. But this will probably change all pictures that use TruthSeeding and this must be especially seen in background populated frames reconstruction
  • AI was used in preparing this PR. - not yet...

@github-actions github-actions Bot added the topic: tracking Relates to tracking reconstruction label Jul 28, 2026
@wdconinc

Copy link
Copy Markdown
Contributor

FYI @AkshayaVijay this is a very similar kind of question as to what particle caused a cluster. Maybe the logic of navigating up the MCParticle graph can be shared between this and the cluster links determination.

veprbl pushed a commit that referenced this pull request Jul 30, 2026
This PR applies the include-what-you-use fixes as suggested by
https://github.com/eic/EICrecon/actions/runs/30388662690.
Please merge this PR into the branch `pr/truth-init-accepts-all`
to resolve failures in PR #2797.

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>
Comment thread src/algorithms/tracking/TrackParamTruthInit.cc
@veprbl
veprbl marked this pull request as ready for review August 5, 2026 18:00
Copilot AI lite review requested due to automatic review settings August 5, 2026 18:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR targets EICrecon’s truth-based track seeding (TrackParamTruthInit) to allow seeding of Geant4-produced secondary particles (e.g., decay products) by relaxing the previous hard requirement on generatorStatus == 1.

Changes:

  • Updates the MCParticle filtering logic to accept either generator-stable particles or simulation-produced secondaries (via simulatorStatus).
  • Expands trace logging to include both generator and simulator status for rejected particles.
  • Cleans up and adjusts includes (removing unused headers and adding <tuple>).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/algorithms/tracking/TrackParamTruthInit.cc
Comment thread src/algorithms/tracking/TrackParamTruthInit.cc

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

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)

Comment thread src/algorithms/tracking/TrackParamTruthInit.cc
@veprbl
veprbl added this pull request to the merge queue Aug 6, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Aug 6, 2026
@veprbl
veprbl added this pull request to the merge queue Aug 7, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 7, 2026
DraTeots and others added 3 commits August 12, 2026 13:34
This PR applies the include-what-you-use fixes as suggested by
https://github.com/eic/EICrecon/actions/runs/30388662690.
Please merge this PR into the branch `pr/truth-init-accepts-all`
to resolve failures in PR #2797.

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>
@wdconinc
wdconinc force-pushed the pr/truth-init-accepts-all branch from c983d09 to 0f53b66 Compare August 12, 2026 18:34
@veprbl
veprbl added this pull request to the merge queue Aug 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Aug 18, 2026
@wdconinc
wdconinc added this pull request to the merge queue Aug 18, 2026
Merged via the queue into main with commit 8889775 Aug 18, 2026
163 checks passed
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.

5 participants