Message: Re: Particles with 3 different energies Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: Particles with 3 different energies 

Keywords: paricles energy
Forum: Particles
Re: None Particles with 3 different energies (Konstantinos Michael )
Re: Feedback Re: Particles with 3 different energies (Gumplinger Peter)
Re: None Re: Particles with 3 different energies (Areg)
Re: Feedback Re: Particles with 3 different energies (Gumplinger Peter)
Re: None Re: Particles with 3 different energies (Areg)
Date: 12 Nov, 2007
From: Gumplinger Peter <Gumplinger Peter>

In your example you have two vertexes with one track originating from each (that is, assuming you have: particleGun = new G4ParticleGun(1)

If you had:

  particleGun->SetParticleMomentumDirection(G4ThreeVector(1.,1.,1.));
  particleGun->SetParticleEnergy( 1.0 *GeV);
  particleGun->SetParticlePosition(G4ThreeVector( 50.0*cm , 50.0 *cm , 50.0 *cm ));
  particleGun->GeneratePrimaryVertex(anEvent);

  particleGun->SetParticleMomentumDirection(G4ThreeVector(0.,0.,1.));
  particleGun->SetParticleEnergy( 5.0 *GeV);
  particleGun->GeneratePrimaryVertex(anEvent);

The second track originates from the same position as the first.

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

 Add Message Add Message
to: "Re: Particles with 3 different energies"

 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 ]