import user import sys import os.path import ROOT import PyCintex import AthenaROOTAccess.transientTree from AthenaCommon.SystemOfUnits import * from PyAnalysisUtils import PDG ROOT.gROOT.SetStyle("Plain") if not sys.argv.count('-b'): import rlcompleter, readline readline.parse_and_bind( 'tab: complete' ) readline.parse_and_bind( 'set show-all-if-ambiguous On' ) if len(sys.argv) > 1 and os.path.isfile(sys.argv[-1]): filename = sys.argv[-1] else: filename = '/scratch0/brooks/MC09/mc09_7TeV.105200.T1_McAtNlo_Jimmy.recon.AOD.e510_s765_s767_r1205_tid123042_00/AOD.123042._000001.pool.root.1' print("Using file " + filename) f = ROOT.TFile.Open(filename) tt = AthenaROOTAccess.transientTree.makeTree(f)