|
Celeritas 0.7.0-dev.196+develop.8d0d9047c
|
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. | |
| size_type | num_events () const final |
| Get total number of events. | |
Additional Inherited Members | |
Protected Member Functions inherited from celeritas::EventReaderInterface | |
| CELER_DEFAULT_COPY_MOVE (EventReaderInterface) | |
Use RootEventReader to load events and sample primaries from them.
|
inlinefinalvirtual |
Get total number of events.
Implements celeritas::EventReaderInterface.
|
inlinefinalvirtual |
Sample primaries for a single event.
Return a vector of sampled primaries.
Implements celeritas::EventReaderInterface.