107 thispath = d.GetPath()
109 thispath = thispath.split(
':', 1)[1]
112 for k
in d.GetListOfKeys():
113 if not args.metadata
and k.GetName() ==
'metadata' and k.GetClassName() ==
'TTree':
115 if k.GetClassName().startswith(
'TDirectory'):
118 if args.tree_entries
and k.GetClassName() ==
'TTree':
121 if k.GetClassName() !=
'TEfficiency':
122 fixedjson =
jsonfixup(ROOT.getjson(k), args.fuzzy_histbins)
124 j0 = json.loads(ROOT.getjson(k).Data())
125 for subh
in (
'fPassedHistogram',
'fTotalHistogram'):
126 j0[subh] = json.loads(
jsonfixup(json.dumps(j0[subh])))
127 fixedjson = json.dumps(j0, sort_keys=
True)
128 lhash = zlib.adler32(fixedjson.encode())
133 idxname = os.path.join(thispath, k.GetName())
134 accounting[idxname] = (k.GetObjlen(), k.GetNbytes()-k.GetKeylen())
135 hashes[idxname] = lhash
136 types[idxname] = k.GetClassName()