6 #ifndef HEPMC_READER_ASCII_HEPMC2_H 7 #define HEPMC_READER_ASCII_HEPMC2_H 18 #include "HepMC/Reader.h" 20 #include "HepMC/Data/SmartPointer.h" bool parse_heavy_ion(GenEvent &evt, const char *buf)
Parse heavy ion information.
Base class for all I/O readers.
ifstream m_file
Input file.
vector< GenParticlePtr > m_particle_cache
Particle cache.
ReaderAsciiHepMC2(const std::string &filename)
Default constructor.
bool read_event(GenEvent &evt)
Implementation of Reader::read_event.
bool parse_weight_names(const char *buf)
Parse weight names.
vector< int > m_vertex_barcodes
Old vertex barcodes.
bool parse_units(GenEvent &evt, const char *buf)
Parse units.
void close()
Close file stream.
vector< GenVertexPtr > m_vertex_cache
Vertex cache.
Stores event-related information.
bool failed()
Return status of the stream.
bool parse_xs_info(GenEvent &evt, const char *buf)
Parse pdf information.
int parse_vertex_information(const char *buf)
Parse vertex.
int parse_event_information(GenEvent &evt, const char *buf)
Parse event.
Definition of template class SmartPointer.
bool parse_pdf_info(GenEvent &evt, const char *buf)
Parse pdf information.
vector< int > m_end_vertex_barcodes
Old end vertex barcodes.
int parse_particle_information(const char *buf)
Parse particle.
Parser for HepMC2 I/O files.