Message: Re: Force energy change in the SteppingAction Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Force energy change in the SteppingAction 

Forum: Event and Track Management
Re: Question Force energy change in the SteppingAction (Luciano Pandola)
Date: 13 Apr, 2005
From: Vladimir IVANTCHENKO <>

On Wed, 13 Apr 2005, Luciano Pandola wrote:

> *** Discussion title: Event and Track Management
> Email replies to must include:
>   In-Reply-To: <"/eventtrackmanage/304">
>   Subject: ...change this to be about your reply.
> Hello,
> I would like to know whether is possible to force the change of energy
> of a given particle in the SteppingAction(), keeping all the other
> parameters (polarization, momentum direction) unchanged. I tried with
> step->GetTrack()->SetKineticEnergy(myEnergy);
> but it seems to me that the new information is ignored.
> Thank you for your help, Luciano

Hello Luciano,

I all user actions parameter is "const G4Track", so user cannot change it. 
Only PhysicsProcess can do that. Thus, for your purpose you can create a 
process whihc will do what you need.


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

 Add Message Add Message
to: "Re: Force energy change in the SteppingAction"

 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 ]