EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HepMC3 Namespace Reference

Functions

std::shared_ptr< Reader > deduce_reader (std::istream &stream)
 This function will deduce the type of input stream based on its content and will return appropriate Reader.
 
std::shared_ptr< Reader > deduce_reader (const std::string &filename)
 This function deduces the type of input file based on the name/URL and its content, and will return an appropriate Reader object.
 

Function Documentation

std::shared_ptr< Reader > HepMC3::deduce_reader ( std::istream &  stream)

This function will deduce the type of input stream based on its content and will return appropriate Reader.

Definition at line 137 of file HepMC_3_2_4_ReaderFactory.h.

View newest version in sPHENIX GitHub at line 137 of file HepMC_3_2_4_ReaderFactory.h

References c.

Referenced by erhic::EventFromAsciiFactory< T >::AddParticle(), deduce_reader(), and eASTHepMC3Interface::OpenFile().

+ Here is the caller graph for this function:

std::shared_ptr< Reader > HepMC3::deduce_reader ( const std::string &  filename)

This function deduces the type of input file based on the name/URL and its content, and will return an appropriate Reader object.

Definition at line 33 of file HepMC_3_2_4_ReaderFactory.h.

View newest version in sPHENIX GitHub at line 33 of file HepMC_3_2_4_ReaderFactory.h

References buffer, deduce_reader(), eicpy.qaplots::file, INPUTHEPMC::filename, and getline.

+ Here is the call graph for this function: