Skip to content

Commit

Permalink
haddnano: skip files with no events when merging Events* trees.
Browse files Browse the repository at this point in the history
  • Loading branch information
kandrosov committed Sep 16, 2022
1 parent 58271d7 commit bb11182
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions haddnano.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def zeroFill(tree, brName, brObj, allowNonBool=False):
obj = obj.CloneTree(-1, "fast" if goFast else "")
branchNames = set([x.GetName() for x in obj.GetListOfBranches()])
for fh in fileHandles[1:]:
if not fh.GetListOfKeys().Contains(name) and str(obj.GetName()).startswith('Events'): continue
otherObj = fh.GetListOfKeys().FindObject(name).ReadObj()
inputs.Add(otherObj)
if isTree and obj.GetName() == 'Events':
Expand Down

0 comments on commit bb11182

Please sign in to comment.