Message: Re: G4UniformRand for isotropic gamma source Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Disagree Re: G4UniformRand for isotropic gamma source 

Forum: Event and Track Management
Re: Question G4UniformRand for isotropic gamma source (T)
Date: 22 Feb, 2013
From: Gumplinger Peter <Gumplinger Peter>

You have to split your code. Put CLHEP::HepRandom::setTheEngine etc. in your main and BeginOfRunAction, as in:

http://www-geant4.kek.jp/lxr/source/examples/extended/field/field04/field04.cc#L82
http://www-geant4.kek.jp/lxr/source/examples/extended/field/field04/src/F04RunAction.cc#L59

and the actual sampling as you've done in GeneratePrimaries.

 Add Message Add Message
to: "Re: G4UniformRand for isotropic gamma source"

 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 ]