Skip to content
Snippets Groups Projects
Commit 6045bd38 authored by Andrii Verbytskyi's avatar Andrii Verbytskyi Committed by Adam Edward Barton
Browse files

Migrate Herwig7 to HepMC3

parent fafe2b8f
No related branches found
No related tags found
No related merge requests found
......@@ -215,7 +215,12 @@ StatusCode Herwig7::fillEvt(HepMC::GenEvent* evt) {
double pdf1 = pdfs.first.xfx(sub->incoming().first ->dataPtr(), scale, x1);
double pdf2 = pdfs.first.xfx(sub->incoming().second->dataPtr(), scale, x2);
// Create the PDFinfo object
#ifdef HEPMC3
HepMC3::GenPdfInfoPtr pdfi = std::shared_ptr<HepMC3::GenPdfInfo>();
pdfi->set(id1, id2, x1, x2, Q, pdf1, pdf2);
#else
HepMC::PdfInfo pdfi(id1, id2, x1, x2, Q, pdf1, pdf2);
#endif
evt->set_pdf_info(pdfi);
ATH_MSG_DEBUG("Added PDF info to HepMC");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment