Customizing cross section calculation function

Hi everyone!

For some reason I need to customize the calculation of the cross-section by implementing the following function in my physics model: G4VEmModel::ComputeCrossSectionPerAtom(G4Step* step) { }.
None of the available implementations takes G4Step as the input parameters. Any comments on how to do this would be so much appreciated.

Thanks,

Hello,

There are two possibilities:

  1. it is possible to add a factor to existing cross sections via UI command
  2. you need implement your own model, which may be fully yours, or which will inherit of one existing model of Geant4. You will need to include your model to Physics Lists in that case.

VI

1 Like