Celeritas  0.5.0-56+6b053cd
Classes | Functions
EventReader.hh File Reference
#include <memory>
#include <string>
#include <vector>
#include "corecel/Config.hh"
#include "corecel/Assert.hh"
#include "corecel/Macros.hh"
#include "corecel/Types.hh"
#include "EventIOInterface.hh"
This graph shows which files directly or indirectly include this file:

Classes

class  celeritas::EventReader
 Read a HepMC3 event record file and create primary particles. More...
 

Functions

void celeritas::set_hepmc3_verbosity_from_env ()
 Set HepMC3 verbosity from the environment. More...
 
std::shared_ptr< HepMC3::Reader > celeritas::open_hepmc3 (std::string const &filename)
 Wrapper function for HepMC3::deduce_reader to avoid duplicate symbols. More...
 

Function Documentation

◆ open_hepmc3()

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

Wrapper function for HepMC3::deduce_reader to avoid duplicate symbols.

HepMC3 through 3.2.6 has a ReaderFactory.h that includes function definitions without inline keywords, leading to duplicate symbols. Reusing this function rather than including ReaderFactory multiple times in Celeritas is the easiest way to work around the problem.

It also sets the debug level from the environment, prints a status message,and validates the file.

◆ set_hepmc3_verbosity_from_env()

void celeritas::set_hepmc3_verbosity_from_env ( )
inline

Set HepMC3 verbosity from the environment.

The default debug level is 5.