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

Question Re: G4ParticleGun and G4GeneralParticleSource 

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

Hi Tim,

Thanks for the response.

Are the following equivalent?

//Gun - particleSource->SetParticleEnergy(ek*MeV); - particleSource->SetParticlePosition(pos*mm); - particleSource->SetParticleMomentumDirection((G4ParticleMomentum)dir); //GPS + particleSource->GetCurrentSource()->GetEneDist()->SetMonoEnergy(ek*MeV); + particleSource->GetCurrentSource()->GetPosDist()->SetCentreCoords(pos*mm); + particleSource->GetCurrentSource()->GetAngDist()->SetParticleMomentumDirection((G4ParticleMomentum)dir);

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

1 None: Re: G4ParticleGun and G4GeneralParticleSource   (Tim Fulcher - 22 Apr, 2017)
(_ Ok: Re: G4ParticleGun and G4GeneralParticleSource   (tibor koroknai - 23 Apr, 2017)
 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 ]