#!/usr/bin/env python3 import aa import ROOT __d = None; __d = set(dir()) names = "EventFile Evt Hit Trk Det dump".split() for n in names : globals()[n] = getattr( ROOT, n ) print (" The following were imported from ROOT : " , names) print (" Remember other km3net/aanet names are in the ROOT namespace") aa.i() # interactive