Message: Re: GeneralParticleSource ignoring particle position given in GeneratePrimaries Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: GeneralParticleSource ignoring particle position given in GeneratePrimaries 

Forum: Particles
Re: Question GeneralParticleSource ignoring particle position given in GeneratePrimaries
Date: 13 Feb, 2017
From: <php1ic>

Adding

G4cout << "Particle Position: " << fParticleSource->GetParticlePosition() << G4endl;

after SetParticlePosition() but before GeneratePrimaryVertex(), returns:

G4WT0 > Particle Position: (0,0,0)

I wonder if I have misunderstood something, why has the particle position not been altered?

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

1 None: Re: GeneralParticleSource ignoring particle position given in GeneratePrimaries   (php1ic - 20 Feb, 2017)
 Add Message Add Message
to: "Re: GeneralParticleSource ignoring particle position given in GeneratePrimaries"

 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 ]