Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restore ion pdg for outgoing ion #23

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/hepmc3writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ int hepMC3Writer::writeEvent(const eXEvent &event, int eventnumber)
ion_lorentzVec.GetPz(),
ion_lorentzVec.GetE());

// PDG code for protons is 2212; not clear what to do for ions, but use proton ID for now SRK August 8, 2021
HepMC3::GenParticlePtr hepmc3_ion = std::make_shared<HepMC3::GenParticle>( hepmc3_ion_four_vector, 2212, 1 );
HepMC3::GenParticlePtr hepmc3_ion = std::make_shared<HepMC3::GenParticle>( hepmc3_ion_four_vector, targetBeam_pdg_id_, 1 );

hepmc3_ion_vertex_to_write->add_particle_out( hepmc3_ion );

Expand Down