Message: Re: specific particle tracking Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: specific particle tracking 

Forum: Event and Track Management
Re: Question specific particle tracking (jerome samarati)
Date: 16 Apr, 2010
From: Gumplinger Peter <Gumplinger Peter>

I didn't completely understand what exactly you want to do but I think you can write logic in StackingAction that would be sufficient to allow for what you want to do. - Every track (primary and secondaries) goes on the stack and you can control which go on the stack (return fUrgent) and which don't (return fKill) in ClassifyNewTrack. Most examples we have simply decide this on particle type or whether it is a primary but decides based on geometry albeit complicated via a hit collection it seems:

Regardless, since ClassifyNewTrack method has a track as its argument you can get all - or almost all - the information of a G4Track object. This certainly includes where it is in global coordinates. You may have to decide based on those what you want to do because, I am afraid, that at this early stage, the volume related information of the G4Track may not yet be properly filled (GetVolume, GetMaterial, GetTouchable etc.). I remember there was/is a thread about this last question in this forum.

 Add Message Add Message
to: "Re: specific particle tracking"

 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 ]