Message: Problem with gps Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Problem with gps 

Forum: Particles
Date: 17 Dec, 2012
From: Tuoyu Cao <Tuoyu Cao>


I am doing a simulation based on extend/electromagnetic/TestEm5. I need to build a source with certain distribution so I want to use gps. According to its mannual, I can simply replace G4ParticleGun with G4GeneralParticleSource. However it does not work. G4GeneralParticleSource class does not have SetParticleMomentumDirection and SetParticleEnergy function and it does not accept "particleGun = new G4GeneralParticleSource(G4 int)". I just command the first two functions and use "particleGun = new G4GeneralParticleSource()". The program can compile but when I do "ls /gps" in the macro, only "/gps/ang" exists and I cannot use other gps commands. Thanks a lot for any help.

Regards Tuoyu

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

1 None: Re: Problem with gps   (michel maire - 17 Dec, 2012)
(_ None: Re: Problem with gps   (Tuoyu Cao - 17 Dec, 2012)
 Add Message Add Message
to: "Problem with gps"

 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 ]