Tracking of particle

Is it possible to get vertex of track or the origin of from where it generated?
like using “KE = aStep->GetTrack()->GetVertexKineticEnergy();”
we can get Vertex kinetic energy.

See G4Track.hh.

// vertex (,where this track was created) information  
const G4ThreeVector& GetVertexPosition() const;

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.