Message: Re: AmBe simulation Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: AmBe simulation 

Forum: Event and Track Management
Re: None AmBe simulation (Giovanni Francesco Ciani)
Date: 18 Jan, 2015
From: Zach Hartwig <Zach Hartwig>

Hi Giovanni,

Your attached code showed that you are using a G4ParticleGun to create the source ... in order to use the G4GeneralParticleSource )G4GPS) methods, you must first instantiate a concrete object of this type in your derived G4VUserPrimaryGeneratorAction class. I have attached "PGA.hh" and "" that shows a very simple implementation of the G4GPS source. If you replace your derived G4VUserPrimaryGeneratorAction class with this one, you will have access to the G4GPS commands from the runtime command line (they are listed under the /gps/ directory).

In addition, I have attached a G4GPS macro "AmBeNeutronVertex.gps" that creates the correct 241Am-Be neutron spectrum via spline interpolation on a series of data points taken from a literature reference. You should execute this macro from the command line via "/control/execute AmBeNeutronVertex.gps" (after obviously changing whatever parameters you might need for your application).

Hope this helps.



 Add Message Add Message
to: "Re: AmBe simulation"

 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 ]