Skip to content

auto-hunt: production vertex of combos with a detached decay (found through issue 694) - 2 fixes (S2, S3) - #1270

Draft
DraTeots wants to merge 2 commits into
masterfrom
auto-hunt/combo-vertex-gh694
Draft

DraTeots wants to merge 2 commits into
masterfrom
auto-hunt/combo-vertex-gh694

Conversation

@DraTeots

@DraTeots DraTeots commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Draft: one point below (K+ Lambda B4 track sets) is not explained yet.

Found while working on #694. This pull request does not fix the symptom reported there: on current master the Lambda z gaps of the issue are not reproduced. The final report is #694 (comment)

These fixes come from the Hall D bug hunt, an autonomous campaign that read the GlueX software, built a test for every suspect line, and kept only findings confirmed by a measurement: a test run of the program on data or simulation, or a direct call of the code against a known answer. Each commit below fixes one finding and is named by its finding id and grade (S1 most serious, S4 least). Full cards with plots are on the campaign pages (JLab login): https://pages.jlab.org/halld/auto-hunt/index.html

Overall gains

2 confirmed bugs fixed in this pull request (S2, S3), one commit each, most serious first.

finding grade what was wrong the fix
GH-694a S2 At the charged comboing stage a decay that is not detached (Sigma0 -> Lambda gamma) is stored as the combo of the detached decay below it (the Lambda's p pi-), because the photon is not added yet. Get_SourceParticles_ThisVertex and Get_SourceCombos_ThisVertex skip only detached PIDs, so they return p and pi- as production-vertex tracks. In K+ Sigma0 pi0 the production vertex then comes from a Lambda daughter in 53% of charged combos; the photon z-bin, the pre-fit mass cuts and the RF votes follow a point near the Lambda decay. Skip a further-decay combo in both functions when the PIDs of its entire chain equal those of a detached decay anywhere below the use (charged PIDs only if the combo has no neutral). Any other combo is kept.
GH-694b S3 Calc_Vertex computes locPOCAToBeamline for a decaying particle and then builds the vertex from position(), which for a decaying particle is its decay point (the upstream comment says "not true if decaying"). In K+ Lambda the Lambda sets the production vertex in a third of the combos. Use the computed POCA. For a track the two are equal, so nothing else changes.

Related findings and commits that belong together

  • GH-694b is needed by GH-694a: once the Lambda daughters are gone, the Lambda itself sets the K+ Sigma0 pi0 production vertex in 1100 of 3241 combos, and without GH-694b those vertices sit at the Lambda decay point. They were measured together.
  • Get_SourceCombosAndUses_ThisVertex has the same recursion and is left as is: its callers in DSourceComboP4Handler pass full combos, where the non-detached decay is not replaced by the detached one.

How it was tested

Same 10 REST files of run 132404 (13.4 M events, 2025-01), ReactionFilter, JANA_CALIB_CONTEXT=calibtime=2025-12-24-00-00-01 and the same CCDB for every arm; master run twice for the noise row.

quantity master master again (noise) with both commits
K+ Sigma0 pi0: production vertex from K+ / p / pi- / Lambda, first 20 000 events 1520 / 578 / 1134 / 9 - 2141 / 0 / 0 / 1100
K+ Sigma0 pi0 track sets reaching the fit, B4_F1 / B4 5449 / 1525 5452 / 1527 6135 (+12.6%) / 1678 (+10.0%)
K+ Sigma0 track sets, B4_F1 / B4 2237 / 572 2233 / 573 2353 (+5.2%) / 651 (+13.8%)
K+ Lambda track sets, B4_F1 / B4 2615 / 883 2615 / 882 2600 / 868
two-level chain g p -> K+ X, X -> Sigma0 pi0: production vertex from p / pi-, 20 000 events 578 / 1134 - 0 / 0
same, tree events B4_F1 / B4, 2 files 435 / 41 438 / 42 516 / 47
g p -> p Y, Y -> K_S phi, K_S -> pi0 pi0, phi -> K+ K-: tree events B4_F1 / B4, 2 files 543 / 589 543 / 590 543 / 590 (unchanged, as intended)

The two code tests use the J/psi PID only as a non-detached container (no mass cut). The second one guards against dropping real production-vertex tracks when an all-neutral detached decay sits beside a charged decay.

GH-694b alone on K+ Lambda (first 20 000 events): 1845 of 1850 production vertices set by the Lambda move from its decay point to its POCA on the beamline (dz p10 / p90 -19.3 / +11.5 cm), 0 of 3690 set by the K+ move; about 5.6% of events change. Track sets 2615 -> 2600.

On the Fall 2018 REST of runs 050797, 051060, 051269, 051577 (435 M events, first version of GH-694a with GH-694b): K+ Sigma0 pi0 track sets +20.0% B4_F1, +14.5% B4, against 0.9% noise.

Not tested: other reactions with a detached decay under a non-detached one on data; GH-694b alone on the 2018 sample. In K+ Lambda the B4 track sets are 879 with GH-694b alone and 868 with both commits, although GH-694a is not reached there by the code; this difference is not explained.

Created by Autonomous HallD "auto-hunt" campaign (executed by Claude)

🤖 Generated with Claude Code

DraTeots and others added 2 commits December 2, 2026 05:02
…on-detached decay as production-vertex tracks

At the charged comboing stage a non-detached decay (Sigma0 -> Lambda gamma) is stored as the combo of the detached
decay below it, so Get_SourceParticles_ThisVertex and Get_SourceCombos_ThisVertex returned the Lambda's p and pi- as
production-vertex tracks. Now a further-decay combo is skipped when the PIDs of its whole chain equal those of a
detached decay at any depth below the use (charged PIDs only if the combo has no neutral).
Card: https://pages.jlab.org/halld/auto-hunt/cards/gh-694a-promoted-lambda-daughters-set-production-vertex/

Created by Autonomous HallD "auto-hunt" campaign (executed by Claude)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mline and then uses its decay position

For a decaying particle position() is its decay point, so the computed locPOCAToBeamline was unused and the
production vertex set by a Lambda sat at the Lambda decay. Now the POCA is used; for a track the two are equal.
Card: https://pages.jlab.org/halld/auto-hunt/cards/gh-694b-decaying-particle-poca-unused/

Created by Autonomous HallD "auto-hunt" campaign (executed by Claude)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gluex

gluex commented Dec 2, 2026

Copy link
Copy Markdown

Test status for this pull request: SUCCESS

Summary: summary.txt
Logs: results/log

Build log: make_auto-hunt_combo-vertex-gh694.log
Build report: report_auto-hunt_combo-vertex-gh694.txt

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.

2 participants