Problem 478 - G4VParticleChange::SetNumberOfSecondaries() Warning theListOfSecondaries is not empty
Summary: G4VParticleChange::SetNumberOfSecondaries() Warning theListOfSecondaries is ...
Status: CLOSED WONTFIX
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/electromagnetic (show other problems)
Version: other
Hardware: PC Linux
: P2 normal
Assignee: Michel.Maire
URL:
Depends on:
Blocks:
 
Reported: 2003-04-10 05:08 CEST by farnea
Modified: 2012-02-15 09:58 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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!