problem reading .g4 files

I need help / tips to solve a problem.

I have a .g4 file (geant4 extension) that contains columns and rows, designating energy, time, position, and momentum in the space of electrons generated at random places on the detector. I made a program in .C to read this geant file and generate histograms in root, but it is not working because the file in root appears empty (no data to generate graphs).

I did the same thing for electrons generated in the center of the detector and it worked, is there any difference that I don’t realize? Can anybody help me?

Attached is the output to root showing that the file is empty.

Is it a geant4 or root error? Has anyone ever experienced this?