Message: Re: passing info to tracks Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: passing info to tracks 

Forum: Event and Track Management
Re: Question passing info to tracks (Jean-Pascal Laedermann)
Re: Question Re: passing info to tracks (Jean-Pascal Laedermann)
Date: 16 Sep, 2009
From: Gumplinger Peter <Gumplinger Peter>

Hi Jean-Pascal,

I agree with you, I can't find a pointer to the G4PrimaryParticle either in the G4Track class.

As for your other problem of not being able to add track information to the track because it is declared const in PreUserTrackingAction, there is one other solution besides handling the pointer in heretic C++ fashion, and that is using the G4TrackingManager to add the track-info to the (current) track, as is done in the examples:

e.g. employing the method: SetUserTrackInformation

Hope this helps, Peter

 Add Message Add Message
to: "Re: passing info to tracks"

 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 ]