Message: Re: A couple of questions about a G4track Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: A couple of questions about a G4track 

Forum: Particles
Re: Question A couple of questions about a G4track (Luis Alejandro Perez Perez)
Date: 31 Jul, 2015
From: Gumplinger Peter <Gumplinger Peter>

Hi Alejandro,

> - Is there a way to get the production time of a track from its G4track pointer? I managed to get the Vertex position but not the time. Or at least get the production time from the trackID number.

You need to create a G4VUserTrackInformation object, see examples/extended/runAndEvent/RE01

You set fOriginalTime when the RE01TrackInformation object is created in PreUserTrackingAction.

> - Is there a way to get the G4track pointer of a track if you know the trackID number?

G4Track is not a persistent object; e.g. it no longer exists when the track has finished tracking. You can't go back and access the information by the trackID alone. If you need persistent information then you need to create a G4Trajectory object. See 5.1.6 in the Application Developers Guide

Peter

 Add Message Add Message
to: "Re: A couple of questions about a G4track"

 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 ]