_Operating System:_Ubuntu 22.04 LTS
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!