29 std::string_view source) {
30 if (value ==
"final_state") {
33 if (value ==
"full") {
36 throw std::runtime_error(std::string{source} +
": unknown record mode '" +
38 "' (expected 'final_state' or 'full')");
Definition hepmc_status.hpp:17
record_mode
Definition record_mode.hpp:20
@ final_state
Only particles the generator left undecayed.
@ full
The whole record, statuses and mother links intact.
record_mode parse_record_mode(std::string_view value, std::string_view source)
Parse the record configuration option.
Definition record_mode.hpp:28