Skip to content

Commit

Permalink
version
Browse files Browse the repository at this point in the history
  • Loading branch information
zbilodea committed Oct 20, 2023
1 parent 2fb2ee8 commit 10d639b
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions src/odapt/operations/hadd.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,39 +478,39 @@ def main():
)


def merge_ttree(ttree1, ttree2, name): #hadd includes
# Use tmpdir? Or just do two at a time, tree reduction style...
if ttree1.name != ttree2.name:
print("Names must be the same")
# def merge_ttree(ttree1, ttree2, name): #hadd includes
# # Use tmpdir? Or just do two at a time, tree reduction style...
# if ttree1.name != ttree2.name:
# print("Names must be the same")

#title must be the same as the file name? maybe is just a tChain thing
# #title must be the same as the file name? maybe is just a tChain thing

# Get keys
t1_keys = ttree1.keys(recursive=True)
t2_keys = ttree2.keys(recursive=True)
# # Get keys
# t1_keys = ttree1.keys(recursive=True)
# t2_keys = ttree2.keys(recursive=True)

all_keys = np.union1d(t1_keys, t2_keys)
# all_keys = np.union1d(t1_keys, t2_keys)

for t1_key in t1_keys:
class_name = ttree1[t1_key].class_name()
if class_name == "ttree":
branches = ttree1[t1_key].branches
# for t1_key in t1_keys:
# class_name = ttree1[t1_key].class_name()
# if class_name == "ttree":
# branches = ttree1[t1_key].branches

# for t2_key in t2_keys:
if :
# # for t2_key in t2_keys:
# if :


merge_inputs()
# merge_inputs()

# Check if histograms
# # Check if histograms

write...
# read key - get get class name
# inputs(?) = tlist()
# if isTree:
# obj = obj.CloneTree?
# branches = obj.branches
# for f2 in files[1:]:
# other_obj = f2.getListOfKeys().readObj()
# inputs.Add(other_obj)
#
# write...
# # read key - get get class name
# # inputs(?) = tlist()
# # if isTree:
# # obj = obj.CloneTree?
# # branches = obj.branches
# # for f2 in files[1:]:
# # other_obj = f2.getListOfKeys().readObj()
# # inputs.Add(other_obj)
# #

0 comments on commit 10d639b

Please sign in to comment.