Message: Re: possible flagging the process at the prepoint ? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: possible flagging the process at the prepoint ? 

Forum: Event and Track Management
Re: Question possible flagging the process at the prepoint ? (David Sangcheol Lee)
Re: Idea Re: possible flagging the process at the prepoint ? (filippo)
Re: Ok Re: possible flagging the process at the prepoint ? (David Sangcheol Lee)
Date: 08 Oct, 2018
From: Michael H. Kelsey <Michael H. Kelsey>

On Mon, 08 Oct 2018 08:54:04 GMT, David Sangcheol Lee wrote:> I understand what you are trying to say. The objective I am looking is
> to find the process that goes under the each tracking step. If I flag
> the creation process, that would tell me what process is used to create
> the particle but not the step when the particle is tracking.

So there are almost always multiple processes which contribute to the state of the track at the end of each step. There is the DiscreteProcess which limited the step (i.e., which caused the step to be the exact length it happens to be), and that is what you find in the GetProcessDefinedStep() output. But there are continuous processes (like energy loss, Cherenkov emission, multiple scattering) which also affect the track's kinematics, but which are not step-limiting.

Then, you need to realize the for a given step, the "PreStepPoint()" is nothing more nor less than the PostStepPoint of the previous step! It's just copied over. So if you look at PreStepPoint()->GetProcessDefinedStep(), you are not learning anything new; that's just the process that limited the previous step. Obviously, for the first step that pointer will be null.

There is no process which "started the step". Steps are started by G4Transportation, moving the track from point A to point B.

I hope that helps clarify things, at least a little.

  -- Michael Kelsey

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

1 Question: Re: possible flagging the process at the prepoint ?   (David Sangcheol Lee - 09 Oct, 2018)
(_ None: Re: possible flagging the process at the prepoint ?   (Mike Kelsey - 09 Oct, 2018)
(_ Ok: Re: possible flagging the process at the prepoint ?   (David Sangcheol Lee - 09 Oct, 2018)
 Add Message Add Message
to: "Re: possible flagging the process at the prepoint ?"

 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 ]