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

Warning Re: How to kill tracks 

Forum: Event and Track Management
Re: Question How to kill tracks (Amit Kumar)
Date: 19 Apr, 2017
From: Gumplinger Peter <Gumplinger Peter>

Hi Amit,

I am afraid that the G4Track's 'VertexKineticEnergy' is NOT set until after G4SteppingManager::SetInitialStep method. It is still the default zero of the G4Track constructor in your ClassifyNewTrack method. I agree that this is a pitfall in the instantiation of G4Track. One would expect that all class members are set in StackingAction.

For now, just change to:

track->GetKineticEnergy() or GetTotalEnergy()

since the track is at the vertex in StackingAction.

Strange, I would have expected that you fKill all secondary tracks with your code, opposite to what you say happens.

Peter

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

1 Idea: Re: How to kill tracks   (Amit Kumar - 20 Apr, 2017)
(_ None: Re: How to kill tracks   (michel maire - 20 Apr, 2017)
(_ Ok: Re: How to kill tracks   (Amit Kumar - 21 Apr, 2017)
(_ None: Re: How to kill tracks   (michel maire - 21 Apr, 2017)
 Add Message Add Message
to: "Re: How to kill 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 ]