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

Idea Re: How to kill tracks 

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

Thanks Peter for your valuable reply.

Now I have used track->GetKineticEnergy() or GetTotalEnergy() but nothing has changed.

Yes you are right

if(track->GetVertexKineticEnergy() < 70*keV) return fKill;

should kill all the secondariness with energy less than 70 keV, not only the photons from target.

But it is killing nothing at all!!

But now I have implemented following lines in stepping action by introducing a physical volume named "MV" in detector construction class:-

if((thePrePV->GetName() == "MV") && (thePostPV->GetName() == "World")){ if(step->GetTrack()->GetVertexKineticEnergy() < 70*keV){ track->SetTrackStatus(fStopAndKill) } }

Now the spectrum after the volume MV is not containing photons having energy less than 70 keV. I think, now I have obtained what I wanted to get.

Let me know if I am still doing mistake!!

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

1 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 ]