diff --git a/DQMServices/Demo/test/dqmiodumpentries.py b/DQMServices/Demo/test/dqmiodumpentries.py index 2bdfa3a410c53..7e6fec0511f58 100755 --- a/DQMServices/Demo/test/dqmiodumpentries.py +++ b/DQMServices/Demo/test/dqmiodumpentries.py @@ -30,7 +30,7 @@ } f = ROOT.TFile.Open(args.inputfile) -idxtree = f["Indices"] +idxtree = getattr(f, "Indices") summary = defaultdict(lambda: 0) @@ -42,7 +42,7 @@ # inclusive range -- for 0 entries, row is left out firstidx, lastidx = idxtree.FirstIndex, idxtree.LastIndex - metree = f[treenames[metype]] + metree = getattr(f, treenames[metype]) # this GetEntry is only to make sure the TTree is initialized correctly metree.GetEntry(0) metree.SetBranchStatus("*",0)