Message: GPS SetParticleMomentumDirection Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None GPS SetParticleMomentumDirection 

Forum: Geometry
Date: 24 Mar, 2016
From: <Nicolas78>

Hi G4 experts,

I am using the G4GeneralParticleSource in my primarygeneratoraction but I want to set my own particle momentum direction (not using UI commands). When I try to use "particleGun->SetParticleMomentumDirection" I get the following error: "class G4GeneralParticleSource has no member named SetParticleMomentumDirection".

Therefore, How could I set my momentum direction without UI commands ?

Thanks, Nicolas

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

1 None: Re: GPS SetParticleMomentumDirection   (John Allison - 24 Mar, 2016)
(_ None: Re: GPS SetParticleMomentumDirection   (Nicolas78 - 25 Mar, 2016)
(_ None: Re: GPS SetParticleMomentumDirection   (Nicolas78 - 25 Mar, 2016)
(_ None: Re: GPS SetParticleMomentumDirection   (John Allison - 25 Mar, 2016)
(_ None: Re: GPS SetParticleMomentumDirection   (Nicolas78 - 29 Mar, 2016)
(_ None: Re: GPS SetParticleMomentumDirection   (Artem Zontikov - 29 Mar, 2016)
(_ None: Re: GPS SetParticleMomentumDirection   (Nicolas78 - 29 Mar, 2016)
 Add Message Add Message
to: "GPS SetParticleMomentumDirection"

 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 ]