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