Message: Re: Set TrackStatus Question Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Set TrackStatus Question 

Forum: Event and Track Management
Re: Question Set TrackStatus Question (Neoh)
Date: 26 Jun, 2012
From: Michael H. Kelsey <Michael H. Kelsey>

On Tue, 26 Jun 2012 15:56:17 GMT, Neoh wrote:
> I am implementing my own hadronic model to produce certain secondaries
> from a custom physics reaction.
>
> Suppose I intend to kill a primary particle and produce a list of
> secondaries from a physics reaction. If I set track status to
> StopAndKill in G4ParticleChange, will it kill the track along with all
> the list of secondaries that I want to produce?

No, just the opposite. StopAndKill removes the original track, and _replaces_ it with the list of secondaries you add to G4ParticleChange.

> 
> I was thinking not to set any track status and just add the secondaries
> list(without adding primary particle into the list of course),will this
> achieve the purpose I intend it to be?

Definitely don't add the primary particle back onto the list. You do want to set the track status.

If you're really meaning to implement a hadronic "model", then you should inherit from G4HadronicInteraction, and use the "RegisterMe()" function to attach your model to the appropriate InelasticProcess when building your physics list.

    -- Michael Kelsey

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

1 Question: Re: Set TrackStatus Question   (Neoh - 26 Jun, 2012)
(_ None: Re: Set TrackStatus Question   (Mike Kelsey - 26 Jun, 2012)
 Add Message Add Message
to: "Re: Set TrackStatus Question"

 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 ]