Added runtime user hook for triggered events to LambdaB gen - #2461
Open
jackal1-66 wants to merge 1 commit into
Open
jackal1-66 wants to merge 1 commit into
jackal1-66 wants to merge 1 commit into
Conversation
|
REQUEST FOR PRODUCTION RELEASES: This will add The following labels are available |
Collaborator
Author
|
Tagging @MRazza879 for a review on this as well |
alcaliva
approved these changes
Sep 14, 2026
alcaliva
enabled auto-merge (squash)
September 14, 2026 12:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GeneratorHFTrigger_LambdaBToDeuteron.ini ran usually for >24h on
the GRID and got killed on TTL.
generator_pythia8_hfhadron_to_nuclei.Ctrigger branch retries Pythia8event generation indefinitely until the requested b-hadron turns up at midrapidity. The underlying .cfg
uses plain SoftQCD:inelastic with no production bias, so on unbiased
minimum-bias QCD the number of full hadronizations needed per trigger
event was measured at mean ~800 retries, up to 2928 observed in a 10-event sample.
A production job needs thousands of trigger events, so any single one
drawing a bad statistical fluctuation can stall the job for hours with
no error and no log output - looking indistinguishable from a hang.
So, this solution biases parton-level generation towards bbbar production at midrapidity
via a Pythia8 UserHooks veto (reusing UserHooks_qqbar, already used by
the standard beauty gap-triggered HF generator), so non-bbbar attempts
are rejected before the hadronization step runs. This drops
the mean retries needed per trigger event by ~2 orders of magnitude.
The bias is toggled via the new UserHooks_qqbar::setActive() around generateEvent()'s retry loop, since it
must not run during the minimum-bias branch, but only for the triggered events.
The issue was spotted in https://its.cern.ch/jira/browse/O2-7169