Skip to content
Snippets Groups Projects

Resolve "uproot4 integration"

Merged Tamas Gal requested to merge 58-uproot4-integration-2 into master
Compare and Show latest version
7 files
+ 291
237
Compare changes
  • Side-by-side
  • Inline
Files
7
+ 8
5
@@ -19,12 +19,12 @@ class OfflineReader(EventReader):
item_name = "OfflineEvent"
skip_keys = ["t", "AAObject"]
aliases = {
"t_sec": "t.fSec",
"t_ns": "t.fNanoSec",
"t_sec": "t/t.fSec",
"t_ns": "t/t.fNanoSec",
"usr": "AAObject/usr",
"usr_names": "AAObject/usr_names",
}
special_branches = {
nested_branches = {
"hits": {
"id": "hits.id",
"channel_id": "hits.channel_id",
@@ -67,15 +67,18 @@ class OfflineReader(EventReader):
"dir_x": "mc_trks.dir.x",
"dir_y": "mc_trks.dir.y",
"dir_z": "mc_trks.dir.z",
"E": "mc_trks.E",
"t": "mc_trks.t",
"len": "mc_trks.len",
# "status": "mc_trks.status", # TODO: check this
# "mother_id": "mc_trks.mother_id", # TODO: check this
"type": "mc_trks.type",
"pdgid": "mc_trks.type",
"hit_ids": "mc_trks.hit_ids",
"usr": "mc_trks.usr", # TODO: trouble with uproot4
"usr_names": "mc_trks.usr_names", # TODO: trouble with uproot4
},
}
special_aliases = {
nested_aliases = {
"tracks": "trks",
"mc_tracks": "mc_trks",
}
Loading