Message: Tracking particles Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Tracking particles 

Forum: Event and Track Management
Date: 06 Mar, 2008
From: <sdreda@hotmail.fr>

Hi all,

Hello , I am a new user of GEANT4. I simulated interaction of carbone12 on water target, and I am looking the differents fragments producted in my phantom. I am in the class of MySteppingAction and I want to have the number of the nucleus C10 pruducted Vs Depth(z) of my phantom . What is the instruction which give me this solution?

The instruction :
 G4Track* track = s->GetTrack(); 
 G4String Name = particule->GetParticleName();
 if(Name=="C10[0.0]"){
 G4double Z = track->GetPosition().z();
  ..... 
}
 doesn't give ma what I want.

Any suggestions would be appreciated.

Thanks

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

 Add Message Add Message
to: "Tracking particles"

 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 ]