Skip to content

Commit

Permalink
fix: Update xsection.py
Browse files Browse the repository at this point in the history
- remove 13TeV xsection
- Changes made to the xsec in consistent to BTV private google sheeet:
https://docs.google.com/spreadsheets/d/1WUwRG6b6iiPSUr-bDyLjSA4JW8ePdsY3Q55J7gSq4gc/edit
  • Loading branch information
uttiyasarkar authored and Ming-Yan committed Nov 9, 2023
1 parent f0b6337 commit 65b4e7b
Show file tree
Hide file tree
Showing 3 changed files with 1,240 additions and 1,202 deletions.
7 changes: 6 additions & 1 deletion src/BTVNanoCommissioning/helpers/xs_scaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
from coffea.processor import accumulate
import os
from BTVNanoCommissioning.helpers.xsection import xsection

# from BTVNanoCommissioning.helpers.xsection_13TeV import xsection_13TeV
import numpy as np


Expand Down Expand Up @@ -44,7 +46,10 @@ def scaleSumW(output, lumi):
if ("data" in sample) or ("Run" in sample) or ("Double" in sample):
h = h
else:
raise KeyError(sample, "is not found in xsection.py")
raise KeyError(
sample,
"is not found in xsection.py. If you're using 13TeV samples, please use xsection_13TeV.py",
)

scaled[sample][key] = h
return scaled
Expand Down
Loading

0 comments on commit 65b4e7b

Please sign in to comment.