Message: PrimaryParticle Info within EventAction Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question PrimaryParticle Info within EventAction 

Keywords: primary particle event action momentum
Forum: Event and Track Management
Date: 16 Oct, 2003
From: Tarek Saab <Tarek Saab>

I have a question about the G4PrimaryParticle class. I am using pp = evt->GetPrimaryVertex()->GetPrimary() followed by pp->GetMomentum() and pp->GetPosition() to extract some info about the primary particle within the EventAction class.

The vector that is returned by GetMomentum() has the correct ratio of components along the x/y/z directions, but the absolute value doesn't make sense.

e.g. /gps/monoenergy 10 keV

 /gps/particle proton
 /run/beamOn 1
 >>> (EndofEventAction) Primary Momentum = (-0,-0,-4.33192)  [Units are MeV]

 /gps/particle e-
 /run/beamOn 1
 >>> (EndofEventAction) Primary Momentum = (-0,-0,-0.101587)

 /gps/particle gamma
 /run/beamOn 1
 >>> (EndofEventAction) Primary Momentum = (-0,-0,-0.10)

Any ideas as to what GetMomentum is actually returning, or less specifically how to get at the primary particle's track info from the EventAction class.

Thanks

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

 Add Message Add Message
to: "PrimaryParticle Info within EventAction"

 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 ]