Skip to content

Commit

Permalink
Merge pull request #433 from bendavid/lambda4decor
Browse files Browse the repository at this point in the history
treat Lambda4 as part of the flavour-decorrelated NP parameters
  • Loading branch information
davidwalter2 authored Apr 24, 2024
2 parents b464566 + 84616fb commit 9419ca1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 2 additions & 6 deletions wremnants/combine_theory_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,11 +379,6 @@ def add_gamma_np_uncertainties(self):
var_vals = gamma_vals
var_names = [f"{gamma_nuisance_name}Down", f"{gamma_nuisance_name}Up"]

if "Lambda" in self.np_model:
Lambda4_nuisance_name = "scetlibNPLambda4"
var_vals.extend(["Lambda4.01", "Lambda4.16"])
var_names.extend([f"{Lambda4_nuisance_name}Down", f"{Lambda4_nuisance_name}Up"])

logger.debug(f"Adding gamma uncertainties from syst entries {gamma_vals}")


Expand Down Expand Up @@ -437,7 +432,8 @@ def add_resum_scale_uncertainty():
def add_uncorrelated_np_uncertainties(self):
np_map = {
"Lambda2" : ["-0.25", "0.25",],
"Delta_Lambda2" : ["-0.02", "0.02",]
"Delta_Lambda2" : ["-0.02", "0.02",],
"Lambda4" : [".01", ".16"],
} if "Lambda" in self.np_model else {
"Omega" : ["0.", "0.8"],
"Delta_Omega" : ["-0.02", "0.02"],
Expand Down
3 changes: 2 additions & 1 deletion wremnants/theory_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,8 @@ def is_flavor_dependent_np(var_label):
return var_label.startswith("Omega") \
or var_label.startswith("Delta_Omega") \
or var_label.startswith("Lambda2") \
or var_label.startswith("Delta_Lambda2")
or var_label.startswith("Delta_Lambda2") \
or var_label.startswith("Lambda4")

# special treatment for Lambda2/Omega since they need to be decorrelated in charge and possibly rapidity
if isinstance(var_axis, hist.axis.StrCategory) and any(is_flavor_dependent_np(var_label) for var_label in var_axis):
Expand Down

0 comments on commit 9419ca1

Please sign in to comment.