Message: Re: GPS Cylindrical surface source : how to generate particules towards the outside of the cylinder? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: GPS Cylindrical surface source : how to generate particules towards the outside of the cylinder? 

Forum: Particles
Re: Question GPS Cylindrical surface source : how to generate particules towards the outside of the cylinder? (Jérôme Roccaz)
Date: 20 Mar, 2013
From: Gumplinger Peter <Gumplinger Peter>

You can always code your source in C++ in PrimaryGeneratorAction::GeneratePrimaries. Calculate a random position on your cylinder then call particleGun->SetParticlePosition. Next calculate a direction you want always away from the cylinder surface and call particleGun->SetParticleMomentumDirection.

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

1 None: Re: GPS Cylindrical surface source : how to generate particules towards the outside of the cylinder?   (Michael H. Kelsey - 21 Mar, 2013)
 Add Message Add Message
to: "Re: GPS Cylindrical surface source : how to generate particules towards the outside of the cylinder?"

 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 ]