Message: Re: Splitting of Compton and Rayleigh Scatter Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Splitting of Compton and Rayleigh Scatter 

Forum: Event and Track Management
Re: Question Splitting of Compton and Rayleigh Scatter (Ioannis Sechopoulos)
Date: 22 May, 2006
From: Jane Tinslay <Jane Tinslay>

Hello Ioannis,

I think to create a duplicate G4Track you need to do:

G4Track* duplicate = new G4Track(track);

To make Geant4 follow the duplicates they can be added as secondaries
to the G4VParticleChange, so something like:

***
G4VParticleChange*
BremSplittingProcess::PostStepDoIt(const G4Track& track, const G4Step&
step)
{
...
G4Track* duplicate = new G4Track(track);
...
G4VParticleChange* particleChange = pRegProcess->PostStepDoIt(track, step);
...
particleChange->SetNumberOfSecondaries(nSecondaries);
particleChange->AddSecondary(duplicate);
***

Hope that helps - examples on how to do this sort of thing will be added
to the Geant4 examples soon.

Cheers,

Jane

On Fri, 19 May 2006, Ioannis Sechopoulos wrote:

> *** Discussion title: Event and Track Management
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <"/eventtrackmanage/485"@geant4-hn.slac.stanford.edu>
>   Subject: ...change this to be about your reply.
>
> I need to introduce bias to the compton and rayleigh scatter processes
> of the low energy package. My idea was to use the G4WrapperProcess() to
> generate many "secondaries" after each compton and rayleigh scatter
> event. This is a problem since the scatter gamma are not considered
> secondaries but the primary travelling in a different direction and with
> different energy (Compton only). So if I use the BremSplittingProcess
> from the G4 Tutorial it doesn't have an effect. I figured that the only
> way to do this is that in the wrapper process to create many copies of
> the primary track and call PostStepDoIt for each and then have G4 follow
> each one of them. The problem is I have no idea how to go about:
> creating many copies of the same primary particle, and then having G4
> follow them after submitting them to PostStepDoIt. Any guidance would be
> greatly appreciated. Thanks!
>

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

1 Question: Re: Splitting of Compton and Rayleigh Scatter   (Ioannis Sechopoulos - 22 May, 2006)
(_ None: Re: Splitting of Compton and Rayleigh Scatter   (Jane Tinslay - 23 May, 2006)
(_ Ok: Re: Splitting of Compton and Rayleigh Scatter   (Ioannis Sechopoulos - 24 May, 2006)
(_ None: Re: Splitting of Compton and Rayleigh Scatter   (Jane Tinslay - 24 May, 2006)
(_ Ok: Re: Splitting of Compton and Rayleigh Scatter   (Ioannis Sechopoulos - 24 May, 2006)
 Add Message Add Message
to: "Re: Splitting of Compton and Rayleigh Scatter"

 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 ]