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

Export primary data to ROOT. More...

#include <RootEventWriter.hh>

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

Public Types

Type aliases
using SPConstParticles = std::shared_ptr< ParticleParams const >
 
using SPRootFileManager = std::shared_ptr< RootFileManager >
 
- Public Types inherited from celeritas::EventWriterInterface
using VecPrimary = std::vector< Primary >
 
using argument_type = VecPrimary const &
 

Public Member Functions

 RootEventWriter (SPRootFileManager root_file_manager, SPConstParticles params)
 Construct with ROOT output filename.
 
 CELER_DELETE_COPY_MOVE (RootEventWriter)
 Prevent copying and moving.
 
void operator() (VecPrimary const &primaries)
 Export primaries to ROOT.
 
- 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

Export primary data to ROOT.

One TTree entry represents one primary.


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