6 #ifndef HEPMC3_READERASCII_H
7 #define HEPMC3_READERASCII_H
45 bool failed() {
return m_isstream ? (bool)m_stream->rdstate() :(bool)
m_file.rdstate(); }
53 std::string
unescape(
const std::string& s);
150 std::istream* m_stream;
bool parse_run_attribute(const char *buf)
Parse run-level attribute.
bool parse_cross_section(GenEvent &evt, const char *buf)
Parse struct GenCrossSection information.
Definition of interface Reader.
ReaderAscii(const std::string &filename)
Constructor.
bool parse_units(GenEvent &evt, const char *buf)
Parse units.
GenEvent I/O parsing for structured text files.
bool parse_tool(const char *buf)
Parse run-level tool information.
std::pair< int, int > parse_event_information(GenEvent &evt, const char *buf)
Parse event.
std::ifstream m_file
Input file.
bool failed()
Return status of the stream.
bool parse_weight_names(const char *buf)
Parse run-level weight names.
bool parse_attribute(GenEvent &evt, const char *buf)
Parse attribute.
Stores event-related information.
bool parse_heavy_ion(GenEvent &evt, const char *buf)
Parse struct GenHeavyIon information.
bool read_event(GenEvent &evt)
Load event from file.
std::map< std::string, shared_ptr< Attribute > > m_global_attributes
Store attributes global to the run being written/read.
bool parse_vertex_information(GenEvent &evt, const char *buf)
Parse vertex.
std::string unescape(const std::string &s)
Unsecape '\' and ' ' characters in string.
Definition of class GenEvent.
bool parse_particle_information(GenEvent &evt, const char *buf)
Parse particle.
Base class for all I/O readers.
void close()
Close file stream.
~ReaderAscii()
Destructor.
bool parse_pdf_info(GenEvent &evt, const char *buf)
Parse struct GenPdfInfo information.
bool parse_weight_values(GenEvent &evt, const char *buf)
Parse weight value lines.