Skip to content

Commit 2de620d

Browse files
committed
fixed overflow bin
1 parent 562e0f9 commit 2de620d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cross_section_measurement/01_get_ttjet_normalisation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from src.cross_section_measurement.lib import closure_tests
2525
from tools.file_utilities import write_data_to_JSON
2626
from tools.hist_utilities import clean_control_region, \
27-
hist_to_value_error_tuplelist
27+
hist_to_value_error_tuplelist, fix_overflow
2828

2929
import glob
3030
import tools.measurement
@@ -103,7 +103,7 @@ def calculate_normalisation(self):
103103
for sample, hist in histograms.items():
104104
# TODO: this should be a list of bin-contents
105105
self.initial_normalisation[
106-
sample] = hist_to_value_error_tuplelist(hist)
106+
sample] = hist_to_value_error_tuplelist(fix_overflow(hist))
107107
if self.method == self.BACKGROUND_SUBTRACTION and sample != 'TTJet':
108108
self.normalisation[sample] = self.initial_normalisation[sample]
109109

0 commit comments

Comments
 (0)