Message: Re: Killing a track Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Killing a track 

Forum: Event and Track Management
Re: None Killing a track (Adam)
Date: 06 Jul, 2007
From: Gumplinger Peter <Gumplinger Peter>

Adam, in your UserSteppingAction(const G4Step * theStep)

do the following:

#include "G4TrackStatus.hh"

G4Track* theTrack = theStep->GetTrack();

G4StepPoint* thePrePoint = theStep->GetPreStepPoint();

G4VPhysicalVolume* thePrePV = thePrePoint->GetPhysicalVolume();


I suggest you review the recent G4 tutorials (kernel) available online:

This should answer many common questions.

Best regards, Peter

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

 Add Message Add Message
to: "Re: Killing a track"

 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 ]