Message: Re: Particle generation over hemisphere Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Particle generation over hemisphere 

Keywords: primary generation, event generation
Forum: Event and Track Management
Re: Question Particle generation over hemisphere (Sean Turnbull)
Date: 28 Apr, 2005
From: Giovanni Santin <Giovanni Santin>

Dear Sean

You can generate your source (and much more) very easily without any C++ coding using the Geant4 General Particle Source (GPS).

You just need to use the G4GeneralParticleSource class instead of the basic G4ParticleGun. For info, it is in $G4INSTALL/source/event.

All UI scripting commands will be available for vertex, direction and energy generation.

Online docs can be found at:

An extended example is now distributed with the Geant4 release. See: $G4INSTALL/examples/extended/eventgenerator/exgps

Hope this helps,


Giovanni Santin
Space Environments and Effects Analysis
Tel: +31 (0)71 565 6267
Fax: +31 (0)71 565 4999

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Re: Particle generation over hemisphere"

 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 ]