Message: Re: Getting Position of Particle Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: Getting Position of Particle 

Keywords: Particle Position
Forum: Event and Track Management
Re: Question Getting Position of Particle (Andrew Wroe)
Date: 16 Jun, 2004
From: <br111@york.ac.uk>

I know how to get the position of a particle:
For example, if "vector" is a G4ThreeVector type variable, you can write:

G4double xpos = vector.x();
G4double ypos = vector.y();
G4double zpos = vector.z();

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

 Add Message Add Message
to: "Re: Getting Position of Particle"

 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 ]