Celeritas  0.5.0-56+6b053cd
Public Types | Public Member Functions | List of all members
celeritas::EventWriter Class Reference

Write events using HepMC3. More...

#include <EventWriter.hh>

Inheritance diagram for celeritas::EventWriter:
Inheritance graph
[legend]

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)
 

Detailed Description

Write events using HepMC3.

Member Function Documentation

◆ operator()()

void celeritas::EventWriter::operator() ( VecPrimary const &  primaries)
inlinefinal

Write all primaries from a single event.

< Only these are to be transported!


The documentation for this class was generated from the following files: