Celeritas
0.5.0-56+6b053cd
|
Use RootEventReader
to load events and sample primaries from them.
More...
#include <RootEventSampler.hh>
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) | |
Use RootEventReader
to load events and sample primaries from them.
|
inlinefinalvirtual |
Sample primaries for a single event.
Return a vector of sampled primaries.
Implements celeritas::EventReaderInterface.