Celeritas 0.7+7c39d13
Loading...
Searching...
No Matches
Functions
GeantOffloadUtils.hh File Reference

Functions

optical::GeneratorDistributionData celeritas::distribution_from_step (G4Step const &g4_step)
 Populate a GeneratorDistributionData with G4Step data.
 

Function Documentation

◆ distribution_from_step()

optical::GeneratorDistributionData celeritas::distribution_from_step ( G4Step const g4_step)

Populate a GeneratorDistributionData with G4Step data.

The global Geant4 geometry should be loaded so that the optical material may be determined from the Geant4 material.

The generator type and number of photons is not populated, and should be initialized by the caller.