9 #include "HepMC/StreamInfo.h"
14 : m_finished_first_event_io(false),
15 m_io_genevent_start(
"HepMC::IO_GenEvent-START_EVENT_LISTING"),
16 m_io_ascii_start(
"HepMC::IO_Ascii-START_EVENT_LISTING"),
17 m_io_extendedascii_start(
"HepMC::IO_ExtendedAscii-START_EVENT_LISTING"),
18 m_io_genevent_end(
"HepMC::IO_GenEvent-END_EVENT_LISTING"),
19 m_io_ascii_end(
"HepMC::IO_Ascii-END_EVENT_LISTING"),
20 m_io_extendedascii_end(
"HepMC::IO_ExtendedAscii-END_EVENT_LISTING"),
21 m_io_ascii_pdt_start(
"HepMC::IO_Ascii-START_PARTICLE_DATA"),
22 m_io_extendedascii_pdt_start(
"HepMC::IO_ExtendedAscii-START_PARTICLE_DATA"),
23 m_io_ascii_pdt_end(
"HepMC::IO_Ascii-END_PARTICLE_DATA"),
24 m_io_extendedascii_pdt_end(
"HepMC::IO_ExtendedAscii-END_PARTICLE_DATA"),
27 m_io_momentum_unit(Units::default_momentum_unit()),
28 m_io_position_unit(Units::default_length_unit()),
29 m_stream_id(m_stream_counter),
30 m_reading_event_header(false)
36 unsigned int StreamInfo::m_stream_counter = 0;
39 m_io_momentum_unit = mom;
40 m_io_position_unit = len;
52 return m_reading_event_header;
56 m_reading_event_header = tf;
StreamInfo()
default constructor
void use_input_units(Units::MomentumUnit, Units::LengthUnit)
void set_io_type(int)
set IO type
void set_has_key(bool)
set to false if the stream does not have a file type key
bool reading_event_header()
void set_reading_event_header(bool)
set the reading_event_header flag