14 #include <HepMC3/Units.h>
17 HepMC3::GenEvent&
event) {
19 return reader.read_event(event);
23 return !reader.failed();
34 throw std::invalid_argument(
"Missing input filename stem");
37 throw std::invalid_argument(
"Missing output collection");
44 return "HepMC3AsciiReader";
54 std::vector<HepMC3::GenEvent>
events;
55 HepMC3::GenEvent
event(HepMC3::Units::GEV, HepMC3::Units::MM);
63 reader.read_event(event);
64 while (!reader.failed()) {
67 reader.read_event(event);
71 return ActsExamples::ProcessCode::ABORT;
75 <<
" events read, writing to " <<
m_cfg.outputEvents);