Message: Re: Forcing neutron to undergo inelastic scattering Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Warning Re: Forcing neutron to undergo inelastic scattering 

Forum: Event and Track Management
Re: Question Forcing neutron to undergo inelastic scattering (C Mos)
Date: 17 Oct, 2012
From: Gumplinger Peter <Gumplinger Peter>

I don't have the answer to your question, unless I spend a lot more time on it than I have available right now but,

>          G4NeutronInelasticProcess* theInelasticProcess = new G4NeutronInelasticProcess("inelastic");
>          theInelasticProcess->RegisterMe(new G4LENeutronInelastic);             

this will instantiate new objects every time these lines are executed and can lead to memory problems. Moreover,

> aStep->GetPostStepPoint()->SetProcessDefinedStep(theInelasticProcess);

this will not do what you expect. The step has already been taken and the PostStepPoint simply holds a pointer "for your information". If you change this pointer, you are not influencing the simulation in any way.

Biasing a simulation in the way you want is complicated.

 Add Message Add Message
to: "Re: Forcing neutron to undergo inelastic scattering"

 Subscribe Subscribe

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

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]