Message: Re: Particle excitation during event Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Particle excitation during event 

Forum: Particles
Re: None Particle excitation during event (Sebastian Heil)
Date: 10 Mar, 2014
From: Gumplinger Peter <Gumplinger Peter>

Hi Sebastian,

I cannot give you advise beyond pointing out a general feature of Geant4; e.g. the user cannot change properties of the track from SteppingAction. If you want to change anything about the track you have to write a 'process' in the spirit of G4. This process can then propose a 'particle change' object. How this works in detail has been presented at tutorials and I encourage you to search the agendas and presentations.

I found this was a good presentation at the time - now quite a few years ago.

http://geant4.slac.stanford.edu/UsersWorkshop/G4Lectures/Marc/

AddingNewProcess.PPT

There have been some design changes since with the G4ParticleChange class and some method names have changed. Therefore, its a good idea to crosscheck with current code. For example, a very minimalistic process code is G4OpAbsorption. (in source/processes/optical):

http://www-geant4.kek.jp/lxr/source/processes/optical/src/G4OpAbsorption.cc

This shows you how to implement the GetMeanFreePath and a simple DoIt-Method.

That said, I don't know how you can change the excitation energy of an Ion, except as you say, when it is instantiated. Of course, with a process you have the option to kill the original ion and make a secondary new ion with a different excitation energy.

Your question can perhaps better be answered by someone monitoring the 'hadronic forum'.

Peter

 Add Message Add Message
to: "Re: Particle excitation during event"

 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 ]