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

None Re: Counting secondary electrons escaping a thick target 

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

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

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

1 Feedback: Re: Counting secondary electrons escaping a thick target   (Robert Nnaemeka - 17 May, 2015)
 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