Message: Re: Large number of initial particles Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Large number of initial particles 

Keywords: large number of initial particles
Forum: Run Management
Re: None Large number of initial particles
Date: 26 Mar, 2007
From: <>


I first tried a large number of events in GeneratePrimaries(): 
for (G4long i=1; i<1000000; i++) { particleGun->GeneratePrimaryVertex(anEvent) ; }
But it seems I'm stuck in an infinite loop for more than 1e5 geantinos. 
It takes ~10 min for 1e5 geantinos and I stop the program after 6 hours for 1e6 geantinos. 

That's why I tried "new G4ParticleGun(1000000)" even though the G4ParticleGun() constructor requires a G4int argument (See G4Types.hh). 
It works with n_particle=1e5 (and apparently work somehow for 1e6 photons

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

1 None: Re: Large number of initial particles   (Mathieu Trocmé - 04 Apr, 2007)
 Add Message Add Message
to: "Re: Large number of initial particles"

 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 ]