_Geant4 Version:_10.07.p03
_Operating System:_Ubuntu 22.04 LTS
_Compiler/Version:_Gcc:11.4.0
_CMake Version:_3.22.1
Hello experts,
I want to generate particles using G4ParticleGun. All the information of the particles, energy, position(p_x, p_y, p_z) and momentum(m_x, m_y, m_z) are stored in a root file as columns in a branch.
Each row represents an individual particle. How could I generate particles from a root file?
I appreciate any useful links, code snippets or examples.
Thank you in advance!