6 #ifndef HEPMC3_READER_ASCII_HEPMC2_H
7 #define HEPMC3_READER_ASCII_HEPMC2_H
51 bool failed() {
return m_isstream ? (bool)m_stream->rdstate() :(bool)
m_file.rdstate(); }
126 std::istream* m_stream;
std::ifstream m_file
Input file.
vector< GenVertexPtr > m_vertex_cache
Vertex cache.
Definition of interface Reader.
bool failed()
Return status of the stream.
int parse_particle_information(const char *buf)
Parse particle.
~ReaderAsciiHepMC2()
Destructor.
GenEvent * m_event_ghost
To save particle and verstex attributes.
bool parse_xs_info(GenEvent &evt, const char *buf)
Parse pdf information.
Parser for HepMC2 I/O files.
ReaderAsciiHepMC2(const std::string &filename)
Default constructor.
void close()
Close file stream.
Stores event-related information.
bool parse_weight_names(const char *buf)
Parse weight names.
bool read_event(GenEvent &evt)
Implementation of Reader::read_event.
vector< int > m_vertex_barcodes
Old vertex barcodes.
vector< GenParticlePtr > m_particle_cache
Particle cache.
vector< GenVertexPtr > m_vertex_cache_ghost
Vertex cache for attributes.
vector< GenParticlePtr > m_particle_cache_ghost
Particle cache for attributes.
Definition of class GenEvent.
Base class for all I/O readers.
int parse_event_information(GenEvent &evt, const char *buf)
Parse event.
vector< int > m_end_vertex_barcodes
Old end vertex barcodes.
bool parse_units(GenEvent &evt, const char *buf)
Parse units.
bool parse_heavy_ion(GenEvent &evt, const char *buf)
Parse heavy ion information.
bool parse_pdf_info(GenEvent &evt, const char *buf)
Parse pdf information.
int parse_vertex_information(const char *buf)
Parse vertex.