Problem 1963

Summary: G4ParticleHPEnAngCorrelation why argument anEnergy is regenerated?
Product: Geant4 Reporter: osipenko
Component: processes/hadronic/models/neutron_hpAssignee: dennis.herbert.wright
Status: RESOLVED WONTFIX    
Severity: minor CC: dennis.herbert.wright
Priority: P4    
Version: 10.3   
Hardware: All   
OS: All   

Description osipenko 2017-04-04 17:56:49 CEST
Hi,

in line 105 of G4ParticleHPEnAngCorrelation.cc anEnergy argument is regenerated. Why is it done? I tried to comment it out and it is running just fine. Is there any special case when it is called with wrong argument?
Comment 1 dennis.herbert.wright 2018-10-31 01:11:05 CET
This is a redundant generation of energy for use in multithreaded operation.  The main reason we do it is to prevent non-reproducibility of random seeds in long runs.  It is possible that it actually does nothing, but we keep it for safety.