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?
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.