Problem 605

Summary: extremely slow Penelope Rayleigh computation
Product: Geant4 Reporter: marcus.h.mendenhall
Component: processes/electromagnetic/lowenergyAssignee: Luciano Pandola <luciano.pandola>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 6.0   
Hardware: Other   
OS: Other   

Description marcus.h.mendenhall 2004-03-17 13:13:33 CET
In G4PenelopeRayleigh, the re-computation of the random sampling function for each
call to PostStepDoIt results in my entire simulation being slowed down a factor of more
than 30.  I am attaching a modification to G4PenelopeRayleigh.cc and the associated
header file which caches these results, and looks up re-used values.  This eleminates
the bottleneck.

These should be verified for correctness, and if OK, (and someone else hasn't already
fixed this internally), checked in.

Thanks.
Comment 1 Maria.Grazia.Pia 2004-03-18 03:17:59 CET
The problem is re-assigned to the developer expert in Geant4 Penelope processes.

Best wishes,
Maria Grazia Pia
Comment 2 Luciano Pandola 2004-03-18 07:10:59 CET
Your solution is correct indeed and it can greatly reduce the computation time
for the Rayleigh process. The modified process will be available in the next
public release/patch. Thank you very much for your report and solution.
Best wishes,
Luciano Pandola