I made detector and I need to get coordinates where secondary track start. I want to know how can I bring coordinates for separate each components.
Below is code I tried.
if(aTrack->GetTrackID() != 1)
if(aTrack->GetCreatorProcess()->GetProcessName() != “proptonInelastic”)
G4double positionZ = step->GetPreStepPoint()->GetPosition().z();
G4double r = positionZ;