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