34 if type(o).__name__
in [
'map<string,string>',
37 keys = ROOT.D3PDTest.MapDumper.keys (o)
38 values = ROOT.D3PDTest.MapDumper.values (o)
39 return OrderedDict (sorted (zip (keys, values), key=
lambda t: t[0]))
40 if (
type(o).__name__.startswith (
'vector<char')
or
41 type(o).__name__.startswith (
'vector<unsigned char')):
43 lens = [len(x)
for x
in ll]
44 if lens
and min(lens) == 1
and max(lens) == 1:
45 ll = [ord(x)
for x
in ll]
47 if type(o).__name__.startswith (
'vector<'):
48 return [
topy(x)
for x
in o]
49 if type(o).__name__
in [
'PyFloatBuffer',
204 kk = [k.GetName()
for k
in f.GetListOfKeys()]
210 elif isinstance (o, ROOT.TTree):
211 print (
'\n\n\nTree', pref+k)
212 dumptree (o, by_branch)
213 elif isinstance (o, ROOT.TH1):
214 print (
'\n\n\nTH1', pref+k)
216 elif isinstance (o, ROOT.TDirectory):
217 dumpdir (o, by_branch, pref + k +
'/')
218 elif isinstance (o, ROOT.TObjString):
219 print (
'\n\n\nString', pref+k)
221 print (
'[pickle data skipped]')
224 print (
'__END_OF_STRING__')
226 print (
'\n\n\nKey', pref+k)