Skip to content
Snippets Groups Projects
Commit 22a0c505 authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'generators_herwig7_hepmc3' into 'master'

Migrate Herwig7 to HepMC3

See merge request !33788
parents 9c5f4310 6045bd38
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!33788Migrate Herwig7 to HepMC3
......@@ -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