Problem 455

Summary: Uninitialized variable in G4InelasticInteraction causes un-reproducible results
Product: Geant4 Reporter: dennis.herbert.wright
Component: processes/hadronic/managementAssignee: Hans-Peter.Wellisch
Status: CLOSED FIXED    
Severity: major    
Priority: P2    
Version: other   
Hardware: All   
OS: All   

Description dennis.herbert.wright 2003-02-11 18:14:33 CET
The variable "cache" in G4InelasticInteraction is in some cases not initialized
before it is used.  For example in the method
G4InelasticInteraction::CalculateMomenta, cache is not initialized before use
if the reaction is quasi-elastic.  For the case of GenerateXandPt and TwoCluster,
the method Rotate is called which initializes cache.  Hence for quasi-elastic
events we get unpredictable behavior.  For the time being, I initialize cache
to 0.0 in the constructor of G4InelasticInteraction.  This makes things
reproducible again.
Comment 1 Hans-Peter.Wellisch 2003-02-12 02:52:59 CET
Hi Dennis,

   thank you for reporting this!

Many greetings,

Hans-Peter.
Comment 2 Hans-Peter.Wellisch 2003-02-12 03:02:59 CET
Hi Dennis,

  a fix was submitted for system testing.

Many greetings,

Hans-Peter.
Comment 3 Hans-Peter.Wellisch 2003-03-13 02:13:59 CET
As it turns out, the first fix was not sufficient.
A set of fixes went into patch-1 of 5.0.