Message: Re: How to check whether 2nd e- is produced? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: How to check whether 2nd e- is produced? 

Forum: Event and Track Management
Re: None How to check whether 2nd e- is produced? (Yigong Zhang)
Date: 18 May, 2016
From: Gumplinger Peter <Gumplinger Peter>

try:

 const std::vector<const G4Track*>* secondaries =
                                           step->GetSecondaryInCurrentStep();

as in:

 http://www-geant4.kek.jp/lxr/source/examples/extended/optical/OpNovice/src/OpNoviceSteppingAction.cc#L75

You can also look for e- in G4UserStackingAction

 Add Message Add Message
to: "Re: How to check whether 2nd e- is produced?"

 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 ]