Message: Re: Howto make G4Track information persistent? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Howto make G4Track information persistent? 

Keywords: G4Track G4Trajectory G4TrajectoryPoint
Forum: Event and Track Management
Re: Question Howto make G4Track information persistent? (Mark Polsen)
Re: None Re: Howto make G4Track information persistent? (Makoto Asai)
Date: 22 Sep, 2003
From: Robert Weller <Robert Weller>

The example for dealing with trajectories at the URL above is very useful. However, like other examples I've seen for customizing track handling, it apparently doesn't expand upon the "trajectory point" concept. I can imagine that one might want to carry additional information in the "point" such as time and energy, or perhaps even generalize the concept of "point" to include "line segment" with information smilar to that in the step. Is there an example somewhere of how to do this (correctly!)? Couldn't one simply create a G4TrajectoryPoint class constructor that might, e.g. use aTrack->GetStep() where Asai's example uses aTrack->GetPosition()? I mean something like "new G4TrajectoryPoint(aTrack->GetStep())" where the constructor extracts whatever information from the step that is of interest, and hides it in the G4TrajectoryPoint class along with the location vector. I guess I don't mind doing this myself if it's a sensible way to handle additional information about a trajectory. However, not finding examples of this appraoch, I'm suspicious that perhaps I'm missing something more fundamental. Is there another way to handle the generalization of the trajectory to something other than a set of points in space, or is this just something that isn't of interest to most people, and so isn't on the radar screen? -Thanks.

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

 Add Message Add Message
to: "Re: Howto make G4Track information persistent?"

 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 ]