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

None Re: passing info to tracks 

Keywords: tracking user information
Forum: Event and Track Management
Re: Question passing info to tracks (Jean-Pascal Laedermann)
Date: 26 May, 2006
From: Makoto Asai <Makoto Asai>


In your PrimaryGeneratorAction, after generating primaties, and just 
before returing the G4Event pointer, you can add your information to 
G4PrimaryVertex and G4PrimaryPartcle objects by creating your class 
objects derived from G4VUserPrimaryVertexInformation and 

Then, in your PreUserTrackingAction, G4Track has a pointer to 
corresponding G4PrimaryParticle object if the track is a primary,
so that you can copy the information in your 
G4VUserPrimaryVertexInformation and G4VUserPrimaryPerticleInformation
objects to yet another your class object derived from
G4VUserTrackInformation. This user track information class should be
attached to the G4Track object. This information class can be copied
to the daughter secondaries, if needed.

Now, once a track has come to a sensitive volume, your sensitive
detector sees a step (G4Step) of this track, i.e. you get the 
information to be copied to your hit.

Please look at examples/extended/runAndEvent/RE01 as your reference.
You may also want to look at sldes 11 through 13 of this presentation,
which is presented at the Geant4 tutorial at Jefferson Lab.

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

 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 ]