18 #pragma GCC diagnostic push
19 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
20 #include <HepMC/GenEvent.h>
21 #pragma GCC diagnostic pop
22 #include <HepMC/HeavyIon.h>
41 const char *NName[] = {
47 for (
int i = 0;
i < LAST;
i++)
52 std::cout <<
PHWHERE << NName[
i] <<
" node is missing, no point in continuing exiting now" << std::endl;
60 outNode[DSTNODE]->
addNode(newNode);
66 HepMC::GenEvent *hepmcevt = findNode::getClass<HepMC::GenEvent>(topNode,
"HEPMC");
67 PHG4EventHeader *evtheader = findNode::getClass<PHG4EventHeader>(topNode,
"EventHeader");
71 evtseq = hepmcevt->event_number();
72 HepMC::HeavyIon *hi = hepmcevt->heavy_ion();
75 evtheader->set_ImpactParameter(hi->impact_parameter());
76 evtheader->set_EventPlaneAngle(hi->event_plane_angle());
79 evtheader->set_EvtSequence(evtseq);
82 evtheader->identify();