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

Use RootEventReader to load events and sample primaries from them. More...

#include <RootEventSampler.hh>

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

Public Types

Type aliases
using SPConstParticles = std::shared_ptr< ParticleParams const >
 
using UPRootEventReader = std::unique_ptr< RootEventReader >
 
using result_type = std::vector< Primary >
 
- Public Types inherited from celeritas::EventReaderInterface
using VecPrimary = std::vector< Primary >
 
using result_type = VecPrimary
 

Public Member Functions

 RootEventSampler (std::string const &filename, SPConstParticles particles, size_type num_sampled_events, size_type num_merged_events, unsigned int seed)
 Construct RootEventReader , and initialize sampling conditions.
 
result_type operator() () final
 Sample primaries for a single event. More...
 
size_type num_events () const final
 Get total number of events.
 

Additional Inherited Members

- Protected Member Functions inherited from celeritas::EventReaderInterface
 EventReaderInterface ()=default
 
 CELER_DEFAULT_COPY_MOVE (EventReaderInterface)
 

Detailed Description

Use RootEventReader to load events and sample primaries from them.

Member Function Documentation

◆ operator()()

RootEventSampler::result_type celeritas::RootEventSampler::operator() ( )
inlinefinalvirtual

Sample primaries for a single event.

Return a vector of sampled primaries.

Implements celeritas::EventReaderInterface.


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