Skip to content

Commit

Permalink
Remove sys_10 variant
Browse files Browse the repository at this point in the history
  • Loading branch information
achiefa committed Dec 12, 2024
1 parent a17cb77 commit 013d37f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 151 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@
if __name__ == "__main__":
CMS_WCHARM = Extractor("./metadata.yaml", "WPWM-TOT-UNNORM", mult_factor=1000)
_, _, _ = CMS_WCHARM.generate_data(variant='default', save_to_yaml=True)
_, _, _ = CMS_WCHARM.generate_data(variant='sys_10', save_to_yaml=True)
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,7 @@ def __build_unc_definitions(self, variant='default'):
# Add systematic uncertainty
unc_definitions = unc_definitions | SYS_DEFINITIONS

if variant == 'sys_10':
unc_definitions['uncorr_mc_unc'] = {
'description': f'MC uncertainty',
'treatment': 'MULT',
'type': 'UNCORR',
}
elif variant != 'default':
if variant != 'default':
raise ValueError(f'The variant {variant} is not implemented yet.')

return unc_definitions
Expand Down Expand Up @@ -273,9 +267,6 @@ def generate_data(self, variant='default', save_to_yaml=False, path='./'):
# Add systematic uncertainties
unc_dict = unc_dict | tmp

if variant == 'sys_10':
unc_dict['uncorr_mc_unc'] = central_data[data_idx] * 0.01

sys_artificial.append(unc_dict)

if save_to_yaml:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ implemented_observables:
- - CMS_WCHARM_DIFF_UNNORM_13TEV-CMS_WCHARM_13TEV_WPCB_leptrap
- - CMS_WCHARM_DIFF_UNNORM_13TEV-CMS_WCHARM_13TEV_WMC_leptrap
variants:
sys_10:
data_uncertainties:
- uncertainties_WPWM-TOT-UNNORM_sys_10.yaml
legacy:
data_uncertainties:
- uncertainties_legacy_WPWM-TOT-UNNORM.yaml
Expand Down

This file was deleted.

0 comments on commit 013d37f

Please sign in to comment.