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