Message: Re: How to get information of the Primary which produces a Secondary? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: How to get information of the Primary which produces a Secondary?  

Forum: Particles
Re: Question How to get information of the Primary which produces a Secondary? (Cristina Consolandi)
Date: 25 Sep, 2008
From: michel maire <michel maire>

On Thu, 25 Sep 2008 14:13:57 GMT, Cristina Consolandi wrote:
> Hello, I need some help. I have to get the kinetic energy of the primary
> particle when it has produced a secondary.
> 
> I'm trying to do it with stepping action but I can not get it.
> Can you give me an example which can help me?
> thank you wery much.
> Cri
> 
 I extract the following lignes from examples/extended/electromagnetic/TestEm14
 (see SteppingAction.cc)

  G4StepPoint* endPoint = aStep->GetPostStepPoint();
  if (aStep->GetTrack()->GetTrackStatus() == fAlive) 
      G4double energy = endPoint->GetKineticEnergy();  

      Michel  

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

1 Ok: Re: How to get information of the Primary which produces a Secondary?   (Cristina Consolandi - 26 Sep, 2008)
 Add Message Add Message
to: "Re: How to get information of the Primary which produces a Secondary? "

 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 ]