Message: Re: only apply field only to one particle and energy range Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: only apply field only to one particle and energy range 

Forum: Fields: Magnetic and Otherwise
Re: Question only apply field only to one particle and energy range (John Leacock)
Re: Idea Re: only apply field only to one particle and energy range (Gumplinger Peter)
Date: 17 Feb, 2014
From: John Leacock <John Leacock>

Sorry for the delayed response.

Thank you for your reply. I was able to copy G4Transportation.cc to my project's src/ folder. I modified the line (L221):

  if( fieldMgr != 0)

to read:

  if( fieldMgr != 0 && pParticle->GetParticleDefinition()->GetParticleName()=="particle_of_interest")

It now does exactly what I want. Thanks again!

 Add Message Add Message
to: "Re: only apply field only to one particle and energy range"

 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 ]