Skip to content

Commit

Permalink
Using join to merge path
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvbrt committed Nov 8, 2024
1 parent 16c3ad7 commit 34c5e83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/run_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,8 @@ def run_histmaker(args, rdf_module, anapath):

LOGGER.info('Writing out process %s, nEvents processed %s',
process, f'{evtcount.GetValue():,}')
with ROOT.TFile(f'{output_dir}/{process}.root', 'RECREATE'):
with ROOT.TFile(os.path.join(output_dir, f'{process}.root'),
'RECREATE'):
for hist in hists_to_write.values():
if do_scale:
hist.Scale(scale * int_lumi)
Expand Down

0 comments on commit 34c5e83

Please sign in to comment.