Celeritas 0.7.0-dev.249+develop.4727547b
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::JsonEventWriter Class Reference

Export primary data to json. More...

#include <JsonEventWriter.hh>

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

Public Types

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

 JsonEventWriter (std::string const &filename, SPConstParticles particles)
 Construct with output filename.
 
 JsonEventWriter (JsonEventWriter const &)=delete
 Prevent copying and moving.
 
JsonEventWriteroperator= (JsonEventWriter const &)=delete
 
 JsonEventWriter (JsonEventWriter &&)=delete
 
JsonEventWriteroperator= (JsonEventWriter &&)=delete
 
void operator() (VecPrimary const &primaries) override
 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
 
EventWriterInterfaceoperator= (EventWriterInterface const &)=default
 
 EventWriterInterface (EventWriterInterface &&)=default
 
EventWriterInterfaceoperator= (EventWriterInterface &&)=default
 

Detailed Description

Export primary data to json.

This write one event per line.


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