Message: Re: Dose created by usy primary photons not scattered ones Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Dose created by usy primary photons not scattered ones 

Forum: Biasing and Scoring
Re: None Dose created by usy primary photons not scattered ones
Date: 09 Jun, 2015
From: Tsukasa Aso <Tsukasa Aso>

Hi,

  I think the following logic may be requested to score  gammas from a primary, 
without any interaction during the transportation.

(I) Kill tracks except for directly tracks from a primary.   ( This is basically same as your code. )  
 
 If you use stacking action for this purpose, I think following steps will be requested.
 (I assume primary (Ir-192) is generated only one in one event.)

 a)   if ( track->GetParentID() == 0 ) return fUrgent;   // For Ir-192
 b)   if ( track->GetParentID()  == 1 && track->GetDefinition()->GetPDGEncoding() == 22 ) {  
               // Select only direct gamma (PID = 22 ) from Ir-192 (Primary track ID == 1). 
          return  fUrgent;
       }else{
          return  fKill;
       }

(II) However, above requirements does not exclude Compton scattered gammas.
Therefore, you have to check the gamma has no secondary tracks. 
This need to be done when you score the track, e.g. SteppingAction or SensitiveDetector etc.

 This can be done as follows.   Here aStep is an object of G4Step.

 c)  const G4TrackVector*  secondary = aStep->GetSecondary();
      if ( secondary->size() == 0 ) {
           // to be scored.
      } else {
           // Gamma is a scatted via Compton.
      }

I hope it works.

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

1 Question: Re: Dose created by usy primary photons not scattered ones   (ali.khodadadee@gmail.com - 11 Jun, 2015)
 Add Message Add Message
to: "Re: Dose created by usy primary photons not scattered ones"

 Subscribe Subscribe

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