Message: Speed drops after many GeneratePrimaryVertex in the same run Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Speed drops after many GeneratePrimaryVertex in the same run 

Forum: Event and Track Management
Date: 14 Apr, 2004
From: Vlasios Vasileiou <Vlasios Vasileiou>

I notice that the speed of the simulation decreases very much with increasing number of particles shot in the same run.

In my PrimaryGeneratorAction I have a loop that issues many GeneratePrimaryVertex.

While the simulation runs fast at the beggining, after about shooting 100 primaries (each primary creates 100s of secondaries in my sim), the speed drops to nearly zero.

I think this comes from the fact that there is a big array that holds information of all the secondaries in a run, and when it becomes big seeking into it becomes very slow.

Is there a way to avoid this slowdown?

Thanks, Vlasios Vasileiou

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

 Add Message Add Message
to: "Speed drops after many GeneratePrimaryVertex in the same run"

 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 ]