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