Problem 1645

Summary: TestEm6 run02.mac computes logarithm of zero
Product: Examples/Extended Reporter: Vittorio Zecca <vitti570>
Component: electromagnetic/TestEM5Assignee: Vladimir.Ivantchenko
Status: RESOLVED FIXED    
Severity: normal    
Priority: P5    
Version: 10.0   
Hardware: PC   
OS: Linux   

Description Vittorio Zecca 2014-06-24 07:42:41 CEST
Running TestEm6 run02.mac I found that at src/SteppingAction.cc line 91
"analysisManager->FillH1(3,std::log10(thetaMinus*GammaMinus));"
the variable thetaMinus is zero, thus causing the code to compute 
the logarithm of zero.
Putting "assert(thetaMinus);" before that line confirmed my finding.
Comment 1 Vladimir.Ivantchenko 2014-07-02 23:48:22 CEST
Hello,

thanks for pointing to the bug. The fix will be in the next patch for Geant4 10.0 and in the new Geant4 release.

VI
Comment 2 Vladimir.Ivantchenko 2014-07-30 19:48:11 CEST
The fix is provided and will be available in next reference version.