auto detect first vertex with Higgs in children list #49611
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.
PR description:
The current HTXS production-mode identification relies on inspecting GenEvent::vertices()[0] to determine the Higgs boson’s production topology. However, for certain
MG5_aMC@NLO FxFxsamples—such asTTH-Hto2G_Par-M-125_TuneCP5_13p6TeV_amcatnloFXFX-pythia8—the Higgs does not appear among the children of vertices()[0].As a result, the HTXS Rivet module fails to assign a valid Higgs production mode, which propagates to a failure in HTXS categorization during MiniAOD→NanoAOD production. This PR updates the logic to automatically identify the first GenVertex that contains a Higgs boson among its outgoing particles, rather than assuming it is located at vertices()[0].
PR validation:
The updated logic was validated by running MiniAOD → NanoAOD workflows on both:
In all tested samples, the HTXS production mode and category are now correctly assigned.
@mseidel42