#Instructions to open a root file in python: #istall uproot pip install --upgrade uproot #In your script: import uproot import pandas file = 'MIOPERCORSO/absorber-build/output/output.root' branches = ["edep", "weight"] df = uproot.open(file)['edep'].arrays(branches, library='pd') df.head(10)