Message: Re: How to generate more primary particles simultaneously (in a particle bunch) ? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Disagree Re: How to generate more primary particles simultaneously (in a particle bunch) ? 

Forum: Event and Track Management
Re: Question How to generate more primary particles simultaneously (in a particle bunch) ? (Cristian Bungau)
Re: Feedback Re: How to generate more primary particles simultaneously (in a particle bunch) ? (Gumplinger Peter)
Re: Agree Re: How to generate more primary particles simultaneously (in a particle bunch) ? (Cristian Bungau)
Date: 15 May, 2009
From: Gumplinger Peter <Gumplinger Peter>

Hi Cristian,

> If I follow the procedure described, the particles are indeed generated
> within a single event, but at random time intervals...

This is news to me! All primary particles are generated at time = 0s unless the user specifically asks that they have a defined time off-set, with:

particleGun->SetParticleTime(0.0*ns);

What if you forced the time to be zero before each invocation of GeneratePrimaryVertex?

I just looked. The G4ParticleGun has a G4ParticleGunMessenger:

http://www-geant4.kek.jp/lxr/source/event/src/G4ParticleGun.cc#L69

whose constructor:

http://www-geant4.kek.jp/lxr/source/event/src/G4ParticleGunMessenger.cc#L47

sets the particle gun's time to zero:

http://www-geant4.kek.jp/lxr/source/event/src/G4ParticleGunMessenger.cc#L156

So, I don't understand why you're seeing them start at different times. I even followed the G4 logic all the way to where G4Tracks are made. The vertex time is properly propagated.

Peter

 Add Message Add Message
to: "Re: How to generate more primary particles simultaneously (in a particle bunch) ?"

 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 ]