Celeritas 0.6.0-dev.115+3b60a5fd
|
HepMC3 reader class for sharing across threads. More...
#include <HepMC3PrimaryGenerator.hh>
Public Member Functions | |
HepMC3PrimaryGenerator (std::string const &filename) | |
Construct with a path to a HepMC3-compatible input file. | |
CELER_DELETE_COPY_MOVE (HepMC3PrimaryGenerator) | |
void | GeneratePrimaryVertex (G4Event *g4_event) final |
Add HepMC3 primaries to a Geant4 event. | |
int | NumEvents () |
Get total number of events. | |
HepMC3 reader class for sharing across threads.
This class should be shared among threads so that events can be correctly split up between them. It should be called from a user's primary generator action:
Add HepMC3 primaries to a Geant4 event.
This function should be called by G4VUserPrimaryGeneratorAction::GeneratePrimaries
.