Message: G4ParticleGun inquiry Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question G4ParticleGun inquiry 

Keywords: shoot two particles
Forum: Event and Track Management
Date: 16 Dec, 2005
From: Anwar Zeus S. Pattuinan <>

Dear developers,

Good Day!

I would like inquire on how to implement this comment I found on

If the user wants to shoot two particles with different momentum,
position, etc., invoke GeneratePrimaryVertex() method twice and
set quantities on demand to the particle gun.

Is it possible to shoot two different particles (e.g., a pi- and a pi+)
starting from one point and having different trajectories? Do you have
a sample code for this?

Thank you very much!


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

1 None: Re: G4ParticleGun inquiry   (Makoto Asai - 16 Dec, 2005)
 Add Message Add Message
to: "G4ParticleGun inquiry"

 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 ]