Skip to content

Commit

Permalink
Fix output path string
Browse files Browse the repository at this point in the history
Fix output path string
  • Loading branch information
nurfikri89 authored Aug 23, 2020
2 parents d35fbed + 6ff5e59 commit 3a5c375
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Analyzer/MakeHistograms.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def main(sample_name, useSkimNtuples, systStr, useNewTraining=False):
os.mkdir(outDir)

# Open a new ROOT file to store TH1
outFileName = outDir+"Histo_"+sample_name+'.root'
outFileName = "%sHisto_%s%s.root"%(outDir,sample_name,systStrPost)
f = ROOT.TFile(outFileName, 'RECREATE')

# Loop over the Histograms dictionary and store TH1 in ROOT file
Expand Down Expand Up @@ -330,10 +330,10 @@ def main(sample_name, useSkimNtuples, systStr, useNewTraining=False):
ak4Systematics=[]
if isMC:
ak4Systematics=[
# "jesTotalUp",
# "jesTotalDown",
# "jerUp",
# "jerDown"
"jesTotalUp",
"jesTotalDown",
"jerUp",
"jerDown"
]
# Don't do ak4Systematics for MG+HW and AMCNLO
if "MG_HW" in args.sample: ak4Systematics=[]
Expand Down
2 changes: 1 addition & 1 deletion Analyzer/MakeHistogramsHisto3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def ProjectTH3(h3, HistoDict, systStrPost):
os.mkdir(outDir)

# Open a new ROOT file to store TH1
outFileName = outDir+"Histo_%s%s.root"%(sample_name,systStrPost)
outFileName = "%sHisto_%s%s.root"%(outDir,sample_name,systStrPost)
f = ROOT.TFile(outFileName, 'RECREATE')

# Loop over the Histograms3D dictionary and store TH3 in ROOT file
Expand Down

0 comments on commit 3a5c375

Please sign in to comment.