Message: Re: G4ParticleGun and G4GeneralParticleSource Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: G4ParticleGun and G4GeneralParticleSource 

Forum: Documentation and Examples
Re: Question G4ParticleGun and G4GeneralParticleSource (tibor koroknai)
Date: 21 Apr, 2017
From: Tim Fulcher <Tim Fulcher>

Hi Tibor

From what I can see GPS has many more methods than Gun. You may be able to set x, x', y and y' by changing /gps/ang/.

Regards Tim

# General particle source
# proton circle source  
/gps/pos/shape Circle /gps/pos/centre -25. 0. 0. cm /gps/pos/radius 0. mm /gps/pos/sigma_r 2. mm /gps/particle proton /gps/pos/type Beam
# the incident surface is in the y-z plane
/gps/pos/rot1 0 1 0 /gps/pos/rot2 0 0 1
# the beam is travelling along the x-axis without any angular 
#dispersion (angular despersion set to 0.0)
/gps/ang/rot1 0 0 1 /gps/ang/rot2 0 1 0 /gps/ang/type beam1d /gps/ang/sigma_r 0. deg
# the beam energy is in gaussian profile
/gps/ene/type Gauss /gps/ene/mono 70 MeV /gps/ene/sigma 1.4 MeV #

 Add Message Add Message
to: "Re: G4ParticleGun and G4GeneralParticleSource"

 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 ]