Message: 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 How to gain the position of the particle by using G4Track 

Keywords: gain particle position
Forum: Event and Track Management
Date: 25 May, 2003
From: chen yong <chenyong00@mails.tsinghua.edu.cn>

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)
??
 

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

1 None: Re: How to gain the position of the particle by using G4Track   (Vladimir IVANTCHENKO - 26 May, 2003)
2 None: Re: How to gain the position of the particle by using G4Track   (Frank Ruta - 23 Mar, 2018)
 Add Message Add Message
to: "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 ]