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)
Re: None Re: Splitting of Compton and Rayleigh Scatter (Jane Tinslay)
Re: Question Re: Splitting of Compton and Rayleigh Scatter (Ioannis Sechopoulos)
Re: None Re: Splitting of Compton and Rayleigh Scatter (Jane Tinslay)
Re: Ok Re: Splitting of Compton and Rayleigh Scatter (Ioannis Sechopoulos)
Date: 24 May, 2006
From: Jane Tinslay <Jane Tinslay>

Hello Ioannis,

> Jane, That worked! Thank you very much for the help. One last quick
> question: since the PostStepDoIt method is defined as:
>
> G4VParticleChange* SplittingProcess::PostStepDoIt(const G4Track& track,
> const G4Step& step)
>
> at the end I had to re-cast the particleChange to the G4VParticleChange:
>
> return dynamic_cast<G4VParticleChange*>(particleChange); }
>
> Is that a problem, or can I redefine the PostStepDoIt method to return a
> G4ParticleChange* ?
>

Glad that it worked ! Since G4ParticleChange inherits from
G4VParticleChange, I think you should just be able to just return
particleChange without casting it. Does that cause a problem ?

Cheers,

Jane

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

1 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 ]