Message: Get Pointer to G4Track from TrackID Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Get Pointer to G4Track from TrackID 

Forum: Event and Track Management
Date: 06 Sep, 2012
From: Ulrich Stiegler <Ulrich Stiegler>

Hello,

I have a G4int TrackID and would like to get the pointer (G4Track*) to this track.

In more detail: in UserSteppingAction I get the Track from fstep->GetTrack(). From there I get the praent ID via fstep->GetTrack()->GetParentID(). Now I want the pointer to this parent track, so that I can figure out the history of the track.

Thanks in advance for an answer, Uli

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

1 Feedback: Re: Get Pointer to G4Track from TrackID   (Michael H. Kelsey - 06 Sep, 2012)
(_ More: Re: Get Pointer to G4Track from TrackID   (Gumplinger Peter - 13 Sep, 2012)
 Add Message Add Message
to: "Get Pointer to G4Track from TrackID"

 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 ]