Message: G4ParticleGun vs. G4GeneralParticleSource: radiogenics, distributed sources Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question G4ParticleGun vs. G4GeneralParticleSource: radiogenics, distributed sources 

Forum: Fast Simulation, Transportation & Others
Date: 22 Apr, 2011
From: Michael H. Kelsey <Michael H. Kelsey>

I'm working on implementing a variety of sources for an application, but I'm not sure whether I should stick with G4ParticleGun, and do everything myself, or move to G4GPS. So I thought I'd solicit opinions here.

A general question -- how easy is it to configure GPS from code vs. from a macro? I'd like to define my source class such that the user can just select it from the macro, and all of the configuration happens behind the scenes. The two examples I found with GPS (ReverseMC01 and gflash) both seem to do everything with macros.

One of my sources is a carrier-plate with four Am-241 "hockey pucks" mounted on it. I want to let RadioactiveDecay generate the gammas and alphas, and to generate a distribution of primaries from throughout the "active source" volume. That way we'll get straggling, collimator spread, secondaries, etc., which should better match real data.

I also need to implement radiogenic contamination, both stuff on the surface of assembly components and isotopes mixed through a material. This is going to be primarily for neutrons, so I'll want to model sources spread all the way through a given volume. Again, I want to give the source generator a radioactive ion, and let RadioactiveDecay provide the actual primaries.

Does anyone have an example I could look at which is analogous to either of these scenarios? Is GPS the right way for me to go, or should I code up my own implementations (throwing random positions in my volume, etc.) using G4ParticleGun?

-- Michael Kelsey

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

1 None: Re: G4ParticleGun vs. G4GeneralParticleSource: radiogenics, distributed sources   (michel maire - 26 Apr, 2011)
1 Ok: Re: G4ParticleGun vs. G4GeneralParticleSource: radiogenics, distributed sources   (Michael H. Kelsey - 26 Apr, 2011)
2 Question: Re: G4ParticleGun and radiogenics -- is "particle_momentum_direction" used?   (Michael H. Kelsey - 26 Apr, 2011)
1 None: Re: G4ParticleGun and radiogenics -- is   (michel maire - 26 Apr, 2011)
2 Feedback: Re: G4ParticleGun vs. G4GeneralParticleSource: radiogenics, distributed sources   (Pedro Arce - 28 Apr, 2011)
 Add Message Add Message
to: "G4ParticleGun vs. G4GeneralParticleSource: radiogenics, distributed sources"

 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 ]