Celeritas
0.5.0-86+4a8eea4
|
Write events using HepMC3. More...
#include <EventWriter.hh>
Public Types | |
enum class | Format { hepevt , hepmc2 , hepmc3 , size_ } |
Output format. | |
Type aliases | |
using | SPConstParticles = std::shared_ptr< ParticleParams const > |
Public Types inherited from celeritas::EventWriterInterface | |
using | VecPrimary = std::vector< Primary > |
using | argument_type = VecPrimary const & |
Public Member Functions | |
EventWriter (std::string const &filename, SPConstParticles params) | |
Construct by parsing the extension. | |
EventWriter (std::string const &filename, SPConstParticles params, Format fmt) | |
Construct with a filename, particle data, and output format. | |
CELER_DELETE_COPY_MOVE (EventWriter) | |
Prevent copying and moving due to file ownership. | |
void | operator() (VecPrimary const &primaries) final |
Write all primaries from a single event. More... | |
Public Member Functions inherited from celeritas::EventWriterInterface | |
virtual void | operator() (argument_type primaries)=0 |
Write all primaries from a single event. | |
Additional Inherited Members | |
Protected Member Functions inherited from celeritas::EventWriterInterface | |
EventWriterInterface ()=default | |
CELER_DEFAULT_COPY_MOVE (EventWriterInterface) | |
Write events using HepMC3.
|
inlinefinal |
Write all primaries from a single event.
< Only these are to be transported!