Message: Re: Which Action should I take? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Which Action should I take? 

Forum: Analysis
Re: Question Which Action should I take? (Huagang Yan)
Date: 21 Oct, 2016
From: michel maire <michel maire>

On Fri, 21 Oct 2016 03:47:50 GMT, Huagang Yan wrote:
> I want to know 1) the energy spectrum of secondary particles produced in
> a volume, 2) if they are not produced in the volume but enter the
> volume, the energy spectrum just before they enter the volume, i.e., the
> energy they carry into the volume.
> I collected the information of 1) by using StackingAction just as in
> TestEm5. However, I am not sure if I should use TrackingAction or
> SteppingAction to get the information of 2). I wonder what the
> difference is.
> Advice is greatly appreciated.

  A trajectory is made of several steps. 
  In TrackingAction you have the control at beginnig of trajectory (e.g.when the particle borns) and at end of trajectory (e.g.when the particle ends).
  In SteppingAction you have the control at end of each step.

 Therefore, for 2), use SteppingAction.

 I add the text of a FAQ


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

1 None: Re: Which Action should I take?   (Huagang Yan - 21 Oct, 2016)
 Add Message Add Message
to: "Re: Which Action should I take?"

 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 ]