Message: Modification of BremSplittingProcess Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Modification of BremSplittingProcess 

Forum: Event and Track Management
Date: 01 Feb, 2011
From: Oliver Diaz <Oliver Diaz>


I am trying to modified BremSplittingProcess for my simulations, so after any Compton and Rayleigh interaction, I can create N new photons with they corresponding weight. I am using Geant4.9.3.p02.

I have started from the BremSplittingProcess example I found on internet(Hands-on 5 Alternative Physics Lists, Bremsstrahlung Splitting) and I made some modifications according to a previous message of this forum (

I am a bit confused with the use of G4VParticleChange and G4ParticleChange. At some point, when casting, I got Null pointer. Here you have the error: virtual G4VParticleChange* BremSplittingProcess::PostStepDoIt(const G4Track&, const G4Step&): Assertion `0 != particleChange' failed. Abort

This is probably due to my small knowledge of C++, so sorry if the question is too simple, but I really appreciate guidance on this issue.

This is part of my code:

G4VParticleChange* BremSplittingProcess::PostStepDoIt(const G4Track& track, const G4Step& step)
   G4ParticleChange* particleChange(0); // G4VParticleChange in the example hands-on 5
   particleChange = dynamic_cast<G4ParticleChange*>(pRegProcess->PostStepDoIt(track, step)); // pRegProcess->PostStepDoIt(track, step) in the example hands-on 5

 assert (0 != particleChange);

Many thanks in advance,


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

1 Feedback: Re: Modification of BremSplittingProcess   (Michael H. Kelsey - 17 Feb, 2011)
(_ None: Re: Modification of BremSplittingProcess   (Oliver Diaz - 18 Feb, 2011)
 Add Message Add Message
to: "Modification of BremSplittingProcess"

 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 ]