Message: Re: Ignoring certain particles while tracking Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Ignoring certain particles while tracking 

Keywords: limiting tracking of particles to a certain particle
Forum: Event and Track Management
Re: Question Ignoring certain particles while tracking (Matthew Middione)
Date: 13 Jul, 2007
From: michel maire <michel maire>

User Matthew Middione wrote:

>> Is there any way to ONLY track one particle, say the e+ positrons?  Or is there a way to only print out the 
>> informatin for the e+ positrons and not print the info for the other particles seen above?
>> I ask because the above output was only one run and I intend on running it for 50,000 runs, but am only interested
>> in the e+ positron data.

  1- in StackingAction you can keep/kill any particle you wish.
    (see for example TestEm5)

  2- you use your own SteppingVerbose (which inherites from G4SteppingVerbose).
     You can modify this class to select the track you want to print.

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

1 Note: Re: Ignoring certain particles while tracking   (Matthew Middione - 13 Jul, 2007)
 Add Message Add Message
to: "Re: Ignoring certain particles while tracking"

 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 ]