Celeritas
0.5.0-86+4a8eea4
|
Offload tracks to Celeritas via G4VFastSimulationModel interface. More...
#include <FastSimulationOffload.hh>
Public Member Functions | |
FastSimulationOffload (G4String const &name, SharedParams const *params, LocalTransporter *local) | |
Construct a model to be used in all volumes of the problem. | |
FastSimulationOffload (G4String const &name, G4Envelope *region, SharedParams const *params, LocalTransporter *local) | |
Construct a model for a specific volume of space (an "envelope"). More... | |
G4bool | IsApplicable (G4ParticleDefinition const &particle) final |
Return true if this model can be applied to the input G4ParticleDefinition . More... | |
G4bool | ModelTrigger (G4FastTrack const &track) final |
Return true if model can be applied given dynamic particle state in G4FastTrack . More... | |
void | DoIt (G4FastTrack const &track, G4FastStep &step) final |
Offload the incoming track to Celeritas. | |
Offload tracks to Celeritas via G4VFastSimulationModel interface.
This class must be constructed locally on each worker thread/task, typically within the application's concrete implementation of G4VUserDetectorConstruction::ConstructSDandField()
.
celeritas::FastSimulationOffload::FastSimulationOffload | ( | G4String const & | name, |
G4Envelope * | region, | ||
SharedParams const * | params, | ||
LocalTransporter * | local | ||
) |
Construct a model for a specific volume of space (an "envelope").
The envelope cannot be nullptr
as this will cause a segmentation fault in the G4VFastSimulation
base class constructor.
|
final |
Return true if this model can be applied to the input G4ParticleDefinition
.
Purely checks if the particle is one that Celeritas has been setup to handle.
|
final |
Return true if model can be applied given dynamic particle state in G4FastTrack
.
Always returns true because we only make the decision to offload to Celeritas based on geometric region and particle type.