Message: Re: ConfineSourceToVolume in PrimaryGeneratorAction Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Ok Re: ConfineSourceToVolume in PrimaryGeneratorAction 

Forum: Particles
Re: Question ConfineSourceToVolume in PrimaryGeneratorAction (Cristian Bungau)
Date: 18 Aug, 2010
From: Cristian Bungau <Cristian Bungau>

Hi,

The solution was extremely simple and should have been obvious to me from the beginning since I had the code in front of me:

Put the ConfineSourceToVolume condition in GeneratePrimaries(G4Event* anEvent), rather than at the end of the PrimaryGeneratorAction class constructor.

Sorry to have bothered you with this.

Best regards,

Cristian

 Add Message Add Message
to: "Re: ConfineSourceToVolume in PrimaryGeneratorAction"

 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 ]