Shape only systematics #445
-
Hi, I would like to implement systematics only with shape, since normalization uncertainty is included as overall uncertainty. Best, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Tomoya, there is currently no option for this. I think this should be in scope for The easiest way at the moment would probably be to have a custom post-processing script that removes import cabinetry
ws = cabinetry.workspace.load("workspaces/example_workspace.json")
MOD_NAMES_TO_PRUNE = ["Modeling"] # modifiers name to prune
MOD_TYPE_TO_PRUNE = ["normsys"] # modifier types to prune
# the ws object is just a dictionary, iterate through that and drop pieces as needed
# only prune modifiers matching all requirements (name and type)
for channel in ws["channels"]:
for sample in channel["samples"]:
sample["modifiers"] = [
mod
for mod in sample["modifiers"]
if not (
mod["name"] in MOD_NAMES_TO_PRUNE and mod["type"] in MOD_TYPE_TO_PRUNE
)
]
model, data = cabinetry.model_utils.model_and_data(ws) You can check e.g. with In |
Beta Was this translation helpful? Give feedback.
Hi Tomoya, there is currently no option for this. I think this should be in scope for
cabinetry
though and not too difficult to implement. I added #447 to track this.The easiest way at the moment would probably be to have a custom post-processing script that removes
normsys
modifiers from the workspace for all the cases where you would like to use such systematics. Below is an example which uses the example workspace created byexample.py
: