Workaround feature in HepMC3::GenVertex::position()
In HepMC3, if a GenVertex is positioned at the origin, then it is treated as not having its position set. In such a case, the method will loop over the production vertices of particles incoming to the current vertex and return their positions if possible.
In the case of events generated at the origin, then many of the GenVertex objects end up being flagged as not having their positions set.
Once the position of a GenVertex is reset by the vertex positioning code, calling position()
on any "downstream" GenVertex objects which were positioned at the origin, then returns the "upstream"
GenVertex (already-shifted) position, the shift is then applied to this causing the positions of these
"downstream" GenVertex objects to effectively be shifted twice, and so on.
The workaround is to avoid calling GenVertex::position()
in the case that GenVertex::has_set_position()
returns false
and directly use HepMC::FourVector::ZERO_VECTOR()
as the GenVertex position.
Merge request reports
Activity
added alsoTargeting:22.0 bugfix labels
This merge request affects 2 packages:
- Simulation/BeamEffects
- Simulation/ISF/ISF_Core/ISF_Services
Affected files list will not be printed in this case
Adding @jchapman as watcher
added Simulation master review-pending-level-1 labels
This merge request affects 2 packages:
- Simulation/BeamEffects
- Simulation/ISF/ISF_Core/ISF_Services
Affected files list will not be printed in this case
Adding @jchapman as watcher
CI Result SUCCESS (hash 7f336091)Athena AthSimulation AthGeneration AnalysisBase AthAnalysis DetCommon externals cmake make tests Full details available on this CI monitor view. Check the JIRA CI status board for known problems
Athena: number of compilation errors 0, warnings 1
AthSimulation: number of compilation errors 0, warnings 1
AthGeneration: number of compilation errors 0, warnings 0
AnalysisBase: number of compilation errors 0, warnings 0
AthAnalysis: number of compilation errors 0, warnings 0
DetCommon: number of compilation errors 0, warnings 0
For experts only: Jenkins output [CI-MERGE-REQUEST-CC7 59343] CI Result SUCCESS (hash 9d4ff4a9)Athena AthSimulation AthGeneration AnalysisBase AthAnalysis DetCommon externals cmake make tests Full details available on this CI monitor view. Check the JIRA CI status board for known problems
Athena: number of compilation errors 0, warnings 0
AthSimulation: number of compilation errors 0, warnings 0
AthGeneration: number of compilation errors 0, warnings 0
AnalysisBase: number of compilation errors 0, warnings 0
AthAnalysis: number of compilation errors 0, warnings 0
DetCommon: number of compilation errors 0, warnings 0
For experts only: Jenkins output [CI-MERGE-REQUEST-CC7 59344]added review-approved label and removed review-pending-level-1 label
mentioned in commit 6d4e4eb5
added sweep:done label
picked the changes into the branch
cherry-pick-6d4e4eb5715-22.0
with commit 908cbcfcmentioned in commit 908cbcfc
Sweep summary
successful:- 22.0
(see https://aiatlas154.cern.ch/jenkins/job/auto_git_sweeps/3149/console for details)
mentioned in merge request !56995 (merged)
mentioned in commit 9764454c