Skip to content

Tweaks to HepMC3 converter. - #16

Draft
kjplows wants to merge 101 commits into
sjgardiner:incl-hepmc3-marleyfrom
kjplows:feature/kplows-hepmc3-converter
Draft

Tweaks to HepMC3 converter.#16
kjplows wants to merge 101 commits into
sjgardiner:incl-hepmc3-marleyfrom
kjplows:feature/kplows-hepmc3-converter

Conversation

@kjplows

@kjplows kjplows commented Aug 12, 2026

Copy link
Copy Markdown

Extends the behaviour of the HepMCNtpWriter and HepMCConverter classes to handle tune setting and mothers and daughters plus some attributes that were not identical between ghep and hepmc outputs.

Tested across the single-generator threads of standard GENIE (using tune AR23_20i_00_000) with 100 events / thread, numu on Ar40 (apart from diffractive, H1).

Conversion to hepmc3 from ghep: tested by writing out hepmc + ghep output simultaneously (-o foo.ghep.root,ghep,bar.hepmc.txt,hepmc) and diffing the output txt files.

Conversion to ghep from hepmc3: tested with gevdump on each event of each thread.


.. this PR might need to be cherry picked. I won't worry about that now.

idkakorin and others added 30 commits March 16, 2026 22:15
Fix GCC 14 warnings (deprecated-copy, unused variables, sign-compare,shadow)
comment out unused parameter names instead of using (void)
fix memory leaks; add memory sanitizer
Fix missing Single Pion Production handling in gspl2root
fix potential uninitialized variable warnings
fix a typo in ion pdg code for hypernuclei
Bugfix: Ion pdg code for hypernuclei
Fix typo in Gabe's affiliation index
…c3 --> gntp to be lossless. Also move to PYTHIA8
…oubleAttribute`.

Needed to store kinematic variables with enough precision in the ASCII representation of HepMC3
so as not to be lossy.
Diff tests from GHEP --> ASCII --> GHEP were lossy before this commit and showed
nontrivial if small (~0.01%) differences in inelasticity, lepton costheta, and xBj
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.

7 participants