Skip to content

Implement format option for Ascii writers

Andrii Verbytskyi requested to merge implement_format_option into master

Implement an option to change the default printf'' specifier for the float values in the HepMC3::WriterAscii*''. Changing the default (so far!) option "e" to "g" would address the #39 (closed) .

The added test, testIO8, operates with the "g" option. The content of the inputIO8.hepmc is identical to the content of inputIO1.hepmc, but its size is 126888 vs. 205191 for inputIO1.hepmc. This huge difference in the size disappears almost completely after compression,

26141 inputIO1.hepmc.gz
23013 inputIO8.hepmc.gz
Edited by Andrii Verbytskyi

Merge request reports