|
Celeritas 0.7.0-dev.245+develop.a7be925e
|
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. | |
| EventWriter (EventWriter const &)=delete | |
| Prevent copying and moving due to file ownership. | |
| EventWriter & | operator= (EventWriter const &)=delete |
| EventWriter (EventWriter &&)=delete | |
| EventWriter & | operator= (EventWriter &&)=delete |
| void | operator() (VecPrimary const &primaries) final |
| Write all primaries from a single event. | |
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 (EventWriterInterface const &)=default | |
| EventWriterInterface & | operator= (EventWriterInterface const &)=default |
| EventWriterInterface (EventWriterInterface &&)=default | |
| EventWriterInterface & | operator= (EventWriterInterface &&)=default |
Write events using HepMC3.
Write all primaries from a single event.
< Only these are to be transported!