Message: Re: Killing a track at a specific point of it's trajectory Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Killing a track at a specific point of it's trajectory 

Forum: Event and Track Management
Re: Question Killing a track at a specific point of it's trajectory
Date: 26 Oct, 2005
From: Gumplinger Peter <Gumplinger Peter>

Maryam,

PreUserTrackingAction is called BEFORE a track is actually 'stepped through the simulation'. Your code kills only (new) secondary tracks which happen to be created by some interaction/process between the coordinates you defined and is not in "tag_iron_plate_log". You code doesn't kill any primary tracks or tracks that started elsewhere.

For code in UserSteppingAction you should use:

G4StepPoint * thePostPoint = theStep->GetPostStepPoint(); G4VPhysicalVolume * thePostPV = thePostPoint->GetPhysicalVolume(); G4String thePostPVname = thePostPV->GetName();

etc. see example/novice/N04

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 at a specific point of it's trajectory"

 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 ]