Message: Re: Diverging Beam Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Diverging Beam 

Keywords: diverging, proton
Forum: Particles
Re: Question Diverging Beam (Andrew Wroe)
Date: 10 Jun, 2004
From: michel maire <michel maire>

User Andrew Wroe wrote:

>> I have a question regarding diverging beams. At present my simulation of
>> a proton beam has the beam entering the geometry with a direction
>> directly along the z axis (i.e. all incident particles were notmal to
>> the x/y interface). However, I would like to simulate a diverging beam,
>> but have no idea how to go about it.
>> 
>> I know the line
>> 
>>   G4ThreeVector direction = G4ThreeVector(0.0,0.0,-1.0);
>> 
>> Determines the direction of the beam. Any alteration to this will simply
>> change the direction, so do I need to use an extra line?

 See, for instance, examples/extended/electromagnetic/testEm4
 where we shoot a particle randomly in theta,phi.

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

1 None: Re: Diverging Beam   (Giovanni Santin - 15 Jun, 2004)
 Add Message Add Message
to: "Re: Diverging Beam"

 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 ]