Message: Re: angle of secondary particles Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: angle of secondary particles 

Forum: Hits, Digitization and Pileup
Re: None angle of secondary particles (Hanan)
Date: 14 Mar, 2018
From: Michael H. Kelsey <Michael H. Kelsey>

On Wed, 14 Mar 2018 10:52:53 GMT, Hanan wrote:
> Hello, Is there a way to find the angle of secondary particles produced
> in a sensitive detector using the hit collection class. Thank you

The hit collection class itself doesn't "do" anything. It's just a container. Your sensitive detector class (which you have to write yourself, as a subclass of G4VSensitiveDetector) is where all the work happens. There, you have access to the G4Step, and hence to the particle kinematics and to the geometry volume. You can use the track's momentum direction (with suitable transformation from global to local coordinates) and the volume information to get the track's angle. The Application Developers Guide will be very helpful.

  -- Michael Kelsey

 Add Message Add Message
to: "Re: angle of secondary particles"

 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 ]