Please fill out the following information to help in answering your question, and also see tips for posting code snippets
_Geant4 Version:_11.1.1
_Operating System:_Ubuntu 22.04
_Compiler/Version:_CMake 2.8.12
Good morning experts,
I am recording the positions in my simulation as follows:
G4Track* track = step->GetTrack();
G4ThreeVector Position = track->GetPosition();
G4double xpos = Position.getX();
XPos = xpos;
G4double ypos = Position.getY();
YPos = ypos;
G4double zpos = Position.getZ();
ZPos = zpos;
I also want to record theta, phi and psi, could someone guide me please?
Thank you
Aliyu