Message: generating mutiple particle types using GPS macro Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question generating mutiple particle types using GPS macro 

Forum: Particles
Date: 02 Dec, 2003
From: Jeremy McCormick <Jeremy McCormick>

I would like to know if there is a relatively simple way to generate events with multiple particle types using a GPS-based macro.

Hypothetically, I'd like to have a macro something like this:

/gps/particle pi+
/gps/number 1
/gps/position 0 0 199 cm
/gps/direction 0 0 -1
/gps/monoenergy 10 GeV
/gps/generateVertex
/gps/particle mu-
/gps/generateVertex
The method I have seen suggested is calling GPS->GenerateVertex() from PrimaryGeneratorAction->GeneratePrimaries() for each different particle type to generate.

I know the above will work programmtically, but I am wondering if there is a way to do it using macro commands only.

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

1 None: Re: generating mutiple particle types using GPS macro   (Fan Lei - 12 Feb, 2004)
 Add Message Add Message
to: "generating mutiple particle types using GPS macro"

 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 ]