Message: Re: Information from "Track ID = 1" Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Warning Re: Information from "Track ID = 1" 

Forum: Event and Track Management
Re: None Information from "Track ID = 1" (Gabriel Sawakuchi)
Date: 10 Nov, 2005
From: Gumplinger Peter <Gumplinger Peter>

} else if (fTrack->GetTrackID() == 1 ) { // if (fTrack->GetCreatorProcess()->GetProcessName() == "AntiProtonAnnihilationAtRest"||) {

The pointer fTrack->GetCreatorProcess() is likely NULL for a primary track (ID ==1) since there is no 'G4 process' that created it. Such tracks are 'created' in the PrimaryEventGenerator which is not a G4VProcess. Hence, always check this pointer before using it as track IDs > 1 may also be primary tracks.

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

 Add Message Add Message
to: "Re: Information from "Track ID = 1""

 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 ]