Skip to content

Commit

Permalink
create datacard bf
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 committed Mar 9, 2024
1 parent c895f19 commit f717dcc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/HHbbVV/postprocessing/CreateDatacard.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,13 @@
corr_year_shape_systs = {
"FSRPartonShower": Syst(name="ps_fsr", prior="shape", samples=all_mc),
"ISRPartonShower": Syst(name="ps_isr", prior="shape", samples=all_mc),
"scaleacc": Syst(
"scale": Syst(
name=f"{CMS_PARAMS_LABEL}_QCDScaleacc",
prior="shape",
samples=nonres_sig_keys,
samples_corr=False,
),
"pdfacc": Syst(
"pdf": Syst(
name=f"{CMS_PARAMS_LABEL}_PDFacc",
prior="shape",
samples=nonres_sig_keys,
Expand Down Expand Up @@ -675,7 +675,10 @@ def fill_regions(
effect_up, effect_down = get_effect_updown(
values_nominal, values_up, values_down, mask, logger, args.epsilon
)
sample.setParamEffect(shape_systs_dict[skey], effect_up, effect_down)

# separate syst if not correlated across samples
sdkey = skey if syst.samples_corr else f"{skey}_{card_name}"
sample.setParamEffect(shape_systs_dict[sdkey], effect_up, effect_down)

# uncorrelated shape systematics
for skey, syst in uncorr_year_shape_systs.items():
Expand Down

0 comments on commit f717dcc

Please sign in to comment.