Message: Gun more than 1 primary in PrimaryGeneratorAction Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Gun more than 1 primary in PrimaryGeneratorAction 

Forum: Event and Track Management
Date: 17 Jul, 2010
From: lu luo <lu luo>

Dear All:

When I studied this tutorial: http://geant4.slac.stanford.edu/SLACTutorial09/HandsOn4/

the detector of this example is a Sensitive Detector constructed by parameterised volume, there is only 1 primary particule in PrimaryGeneratorAction class, When I run the program with /run/BeamOn 20 in the macro file, it will give 20 simulation results with 1 primary for each simulation.

To launch more than 1 primary particle for each run (for this example), I have to give a number which is superior to 1 in PrimaryGeneratorAction class (for example 100) and reduce BeamOn to 1. Otherwise, it will perform 20 simulations with 100 primary by simulation.

But what I would like to do is to gun n(with n = a very high number) particle by specifying it in the macro file because I want a different random number for each event as the PrimaryGeneratorAction class is called with the same number of the events.

Could someone tell me what I have to do ?

Thanks in advance.

Lu LUO

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

1 None: Re: Gun more than 1 primary in PrimaryGeneratorAction   (Rohin - 17 Jul, 2010)
(_ None: Re: Gun more than 1 primary in PrimaryGeneratorAction   (lu luo - 18 Jul, 2010)
(_ None: Re: Gun more than 1 primary in PrimaryGeneratorAction   (Rohin - 18 Jul, 2010)
(_ Ok: Re: Gun more than 1 primary in PrimaryGeneratorAction   (lu luo - 18 Jul, 2010)
(_ Feedback: Re: Gun more than 1 primary in PrimaryGeneratorAction   (Gumplinger Peter - 19 Jul, 2010)
(_ None: Re: Gun more than 1 primary in PrimaryGeneratorAction   (lu luo - 19 Jul, 2010)
(_ Feedback: Re: Gun more than 1 primary in PrimaryGeneratorAction   (Gumplinger Peter - 19 Jul, 2010)
 Add Message Add Message
to: "Gun more than 1 primary in PrimaryGeneratorAction"

 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 ]