Problem 478

Summary: G4VParticleChange::SetNumberOfSecondaries() Warning theListOfSecondaries is not empty
Product: Geant4 Reporter: farnea
Component: processes/electromagneticAssignee: Michel.Maire
Status: CLOSED WONTFIX    
Severity: normal    
Priority: P2    
Version: other   
Hardware: PC   
OS: Linux   

Description farnea 2003-04-10 05:08:29 CEST
Using the G4PolarizedComptonScattering class, after a few events I obtain
the following message:

G4VParticleChange::SetNumberOfSecondaries() Warning  theListOfSecondaries is not
empty

(the program continues running up to its regular end).
The problem does not occur with the regular Compton scattering class, nor with
the low-energy electromagnetic interactions. I am using Geant4.5.0 with the
latest patch on RedHat 7.3. Eventually, I can send my code to reproduce the
error.
Comment 1 Hans-Peter.Wellisch 2003-04-14 03:28:59 CEST
This is one for michel. It seems the semantics of process management has changed
in this respect, and we have to Clear explicitely...

Many greetings,

Hans-Peter.
Comment 2 farnea 2006-01-26 04:08:59 CET
Since I continued getting the same warning with geant4.8.0, we decided
to have a closer look at the code. Apparently the problem is fixed changing
lines 73-74 from

   if (std::abs(GammaPolarization0.mag() - 1.e0) > 1.e-14)
      G4ComptonScattering52::PostStepDoIt(aTrack,aStep);

to
   if (std::abs(GammaPolarization0.mag() - 1.e0) > 1.e-14)
      return G4ComptonScattering52::PostStepDoIt(aTrack,aStep);

The same obviously will hold for the previous versions!