Skip to content
Snippets Groups Projects

Resolve "uproot4 integration"

Merged Tamas Gal requested to merge 58-uproot4-integration-2 into master
3 files
+ 97
11
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -18,19 +18,12 @@ r = ki.OfflineReader(data_path("offline/usr-sample.root"))
#####################################################
# Accessing the usr data:
# Accessing the usr fields:
usr = r.events.usr
print(usr)
print(r.events.usr_names.tolist())
#####################################################
# to access data of a specific key, you can either do:
# to access data of a specific key:
print(usr.DeltaPosZ)
#####################################################
# or
print(usr["RecoQuality"])
print(ki.tools.usr(r.events, "DeltaPosZ"))
Loading