Skip to content
Snippets Groups Projects

Resolve "Integrate and interface to uhep"

Merged Frank Sauerburger requested to merge 62-integrate-and-interface-to-uhep into master
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
  • 0fae68ee
    Fix blinding · 0fae68ee
    Frank Sauerburger authored
    The blinding was broken due to the presence of under- and overflow edges in the
    blinding window optimizer. This led to invalid inf-inf computations.
+ 3
3
@@ -216,7 +216,7 @@ def hist(dataframe, variable, bins, stacks, selection=None,
for i_stack, stack in enumerate(stacks):
stack_items = []
if stack in blind and variable.blinding is not None:
c_blind = variable.blinding(variable, bins)
c_blind = variable.blinding(variable, bins[1:-1])
else:
c_blind = lambda d: d
@@ -260,7 +260,7 @@ def hist(dataframe, variable, bins, stacks, selection=None,
# Get denominator hist
if denominator in blind and variable.blinding is not None:
c_blind = variable.blinding(variable, bins)
c_blind = variable.blinding(variable, bins[1:-1])
else:
c_blind = lambda d: d
@@ -279,7 +279,7 @@ def hist(dataframe, variable, bins, stacks, selection=None,
numerators_data = []
for i_numerator, numerator in enumerate(numerators):
if numerator in blind and variable.blinding is not None:
c_blind = variable.blinding(variable, bins)
c_blind = variable.blinding(variable, bins[1:-1])
else:
c_blind = lambda d: d
Loading