Message: Re: How to gain the position of the particle by using G4Track Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: How to gain the position of the particle by using G4Track 

Forum: Event and Track Management
Re: None How to gain the position of the particle by using G4Track (chen yong)
Date: 26 May, 2003
From: Vladimir Ivanchenko <Vladimir Ivanchenko>

On Sun, 25 May 2003, chen yong wrote:

> *** Discussion title: Event and Track Management
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <"/eventtrackmanage/89"@geant4-hn.slac.stanford.edu>
>   Subject: ...change this to be about your reply.
> 
> I can get the edep of the particle by G4Track G4double edep =
> theTrack->GetKineticEnergy();
> 
> I also want to get the position of particle. the edep is one varible,
> the position has three varible(x,y,z) Would you please give me some
> advise about using GetPosition()
> 
> for example 
> G4double x=theTrack->GetPosition(x)
> G4double y=theTrack->GetPosition(y)
> G4double z=theTrack->GetPosition(z)
> ??

G4ThreeVector position = theTrack->GetPosition();



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

 Add Message Add Message
to: "Re: How to gain the position of the particle by using G4Track"

 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 ]