Message: Re: How to get Tracks to be more precise Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: How to get Tracks to be more precise 

Forum: Event and Track Management
Re: Question How to get Tracks to be more precise
Date: 15 Aug, 2017
From: Michael H. Kelsey <Michael H. Kelsey>

On Tue, 15 Aug 2017 18:18:11 GMT, frolandh wrote:
> I would like to calculate recoil angle of a secondary particle, but when
> I look at the verbose tracking (on level 2) output, it makes it look
> like the particle didn't move from where it was scattered, making it
> tough to calculate the angle. Is there a way to get more precise
> readings about particle position? Alternatively is there a better way to
> measure recoil angle?

Don't try to use the printed output for any kind of precise calculation! As you can see, the quantities there are only written with three or four significant digits. The actual tracking parameters are G4doubles with full precision.

You can do this calculation in your SteppingAction, by fetching the track kinematics from aStep.GetTrack(), and getting the secondaries from the G4Step (aStep). If you're using a recent version of G4, you can get just the secondaries produced in the current step (GetSecondaryInCurrentStep()).

  -- Michael Kelsey

 Add Message Add Message
to: "Re: How to get Tracks to be more precise"

 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 ]