Message: Re: Counting secondary electrons escaping a thick target Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Counting secondary electrons escaping a thick target 

Forum: Biasing and Scoring
Re: Question Counting secondary electrons escaping a thick target (Robert Nnaemeka)
Re: None Re: Counting secondary electrons escaping a thick target (Michael H. Kelsey)
Date: 17 May, 2015
From: Robert Nnaemeka <Robert Nnaemeka>

Thank you Michael. I have implemented it successfully.

On Thu, 30 Apr 2015 18:59:31 GMT, Michael H. Kelsey wrote:

> On Thu, 30 Apr 2015 18:05:22 GMT, Robert Nnaemeka wrote:
> 
> > I have a thick target enclosed by a box filled with low pressure gas. I
> > fire a proton unto the target and it produces electrons. I want to count
> > only those electrons that manages to escape from the target and enter
> > the box. How to I implement it in the stepping action? (or any other
> > ways it could be done)?.
> 
> You can do this in your stepping action, by looking for the PreStepPoint
> in the target, the PostStepPoint in the gas volume, and the StepStatus
> _not_ fGeomBoundary.
> 
> You can also do it by defining a SensitiveDetector attached to the gas
> volume, and doing the counting there, for particles with PreStepPoint in
> the target (the rest of the condition above is automatically satisfied
> if the SD is called).
> 
> If you just want to count the escapes, and not track them or record
> energy deposition, then you can use the stepping action approach to kill
> the track after you count it:
> 
>      aStep->GetTrack()->SetTrackStatus(fStopAndKill);
> 
>   -- Michael Kelsey
> 

 Add Message Add Message
to: "Re: Counting secondary electrons escaping a thick target"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews