17regions = [34,98,162,226,290,354,418,482,546,610,674,738,802,866,930,994,1058,1122,1186,1250]
21 print(f
" [!] Tree '{name}' not found.")
23 n_entries = tree.GetEntries()
24 print(f
" Tree '{name}': {n_entries} entries")
25 for branch
in tree.GetListOfBranches():
26 print(f
" Branch: {branch.GetName()} ({branch.GetClassName()})")
27 if check_content
and n_entries > 0:
28 print(f
" [Checking up to {max_events} events for content...]")
29 for i
in range(
min(n_entries, max_events)):
31 for branch
in tree.GetListOfBranches():
32 bname = branch.GetName()
34 obj = getattr(tree, bname,
None)
36 if hasattr(obj,
'size'):
37 print(f
" Event {i}: {bname} size = {obj.size()}")
38 elif hasattr(obj,
'__len__'):
39 print(f
" Event {i}: {bname} len = {len(obj)}")
41 print(f
" Event {i}: {bname} type = {type(obj)}")
42 except Exception
as e:
43 print(f
" Event {i}: {bname} [error accessing: {e}]")
69 n_entries = tree.GetEntries()
70 for i
in range(
min(n_entries, max_events)):
72 for bname, label
in branch_map.items():
74 header = getattr(tree, bname,
None)
75 if header
is not None:
77 except Exception
as e:
78 print(f
" {label}: [error accessing: {e}]")