Skip to content

Commit

Permalink
lp_hist none bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 committed Jul 22, 2024
1 parent a99a8b9 commit 8b953f4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/HHbbVV/processors/TTScaleFactorsSkimmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,13 @@ def process(self, events: ak.Array):
)
self.dump_table(pddf, fname)

return {year: {dataset: {"totals": totals_dict, "cutflow": cutflow, "lp_hist": lp_hist}}}
ret_dict = {year: {dataset: {"totals": totals_dict, "cutflow": cutflow}}}

if lp_hist is not None:
ret_dict[year][dataset]["lp_hist"] = lp_hist

print(ret_dict)
return ret_dict

def postprocess(self, accumulator):
return accumulator
Expand Down
8 changes: 7 additions & 1 deletion src/HHbbVV/processors/bbVVSkimmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,13 @@ def process(self, events: ak.Array):
fname = events.behavior["__events_factory__"]._partition_key.replace("/", "_") + ".parquet"
self.dump_table(pddf, fname)

return {year: {dataset: {"totals": totals_dict, "cutflow": cutflow, "lp_hist": lp_hist}}}
ret_dict = {year: {dataset: {"totals": totals_dict, "cutflow": cutflow}}}

if lp_hist is not None:
ret_dict[year][dataset]["lp_hist"] = lp_hist

print(ret_dict)
return ret_dict

def postprocess(self, accumulator):
return accumulator
Expand Down
1 change: 1 addition & 0 deletions src/condor/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def get_site_vars(site):
t2_local_prefix = Path("/ceph/cms/")
t2_prefix = "root://redirector.t2.ucsd.edu:1095"
if username == "rkansal":
# Reminder: need to re-copy this from /tmp whenever it expires (symlink?)
proxy = "/home/users/rkansal/x509up_u31735"
elif username == "annava":
proxy = "/home/users/annava/projects/HHbbVV/test"
Expand Down

0 comments on commit 8b953f4

Please sign in to comment.