Message: what is the differences of these getting energy function Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None what is the differences of these getting energy function 

Keywords: get energy function
Forum: Event and Track Management
Date: 10 Apr, 2007
From: long <long>

Dear Geant4 experts,
      I have tried some functions to get particl's energy.As follows:
      G4double energy1 = fStep->GetPreStepPoint()->GetTotalEnergy();
  G4double energy2 = fStep->GetPostStepPoint()->GetTotalEnergy();
	  G4double energy3 = fTrack->GetTotalEnergy();
	  G4double energy4 = fTrack->GetVertexKineticEnergy();
	  G4double energy5 = fTrack->GetKineticEnergy();

    And I found that energy1=energy2=energy3=(energy5+restmass),for energy4, it is 
usually different from others.
    I have two questions:
   1) I once thought that energy got from prestepPoint should be larger
than energy from postpoint, why they are same;
  2) what is the mean of the GetVertexKineticEnergy()?

   Thanks very much!

long

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

1 Question: Re: what is the differences of these getting energy function   (Katya Gilbo - 18 Oct, 2016)
 Add Message Add Message
to: "what is the differences of these getting energy function"

 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 ]