Message: Re: Negative number of interaction length warning with GEANT4.10.1 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Ok Re: Negative number of interaction length warning with GEANT4.10.1 

Forum: Biasing and Scoring
Re: Question Negative number of interaction length warning with GEANT4.10.1 (Stefan E. Mueller)
Re: None Re: Negative number of interaction length warning with GEANT4.10.1 (Marc Verderi)
Date: 09 Jan, 2015
From: Stefan E. Mueller <Stefan E. Mueller>

OK,

I had a look at example GB01, and modified my code accordingly. Apparently, there are some subtle
 changes when going from GEANT4.10.0 to GEANT4.10.1.

Now the warnings disappeared.

This is what I did to my BiasingOperator-code used to configure and select the biasing operation
 (corresponds to GB01BOptrChangeCrossSection.cc in the GB01 example):

a) add the "G4InteractionLawPhysical.hh" include file

b) moved the "Setup stage" to a dedicated "StartRun" method (and include definition in the .hh-file
 as "virtual void StartRun();")

c) Added the line "operation->UpdateForStep( 0.0 ); " at the end of the
 "ProposeOccurenceBiasingOperation" method.

Thanks for the quick response and the solution.

Stefan

 Add Message Add Message
to: "Re: Negative number of interaction length warning with GEANT4.10.1"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews