Getting Hits and track diagram through ROOT

I want to do analysis of data obtained from geant4 using ROOT but I’m not able to figure it out. Is it important to have ROOT installed on our system to work with “G4AnalysisManager” class in Geant4?

The G4AnalysisManager can produce an output file in ROOT format. If you want to be able to read that file in and analyze it, you either need to have ROOT (https://root.cern.ch) installed on your system, or you need to have other software installed which can read ROOT format data and process it. If you’re conversant in Python, you could consider using uproot and numpy.

Got it. Thank you so much for the help.