|
Celeritas 0.7+0c5d30b
|
Interface for invoking the PostStepDoIt action of Geant4 hadronic processes for a given particle definition and hadronic process type. More...
#include <HadronicInteractor.hh>
Public Member Functions | |
| HadronicInteractor (G4ParticleDefinition const &particle, G4HadronicProcessType type) | |
| Construct using a Geant4 particle definition and hadronic process type. | |
| G4VParticleChange & | operator() (G4Track &track) |
| Invoke the PostStepDoIt action of the Geant4 hadronic process for the given track and step. | |
| std::string const & | process_name () const |
| Return the process name. | |
Interface for invoking the PostStepDoIt action of Geant4 hadronic processes for a given particle definition and hadronic process type.
This class is used to sample final states of hadronic process type that are not yet implemented on GPU. In such cases, the interaction is processed on the CPU using Geant4 with reconstructed G4Track and G4Step objects.
Note that this class is expected to be thread-local in a multi-threaded context to ensure thread-safety and independent processing of hadronic interactions for each thread.