Custom Names for Luminosity Systematics #2552
-
Dear pyhf Experts, we're currently working on a statistical framework based on cabinetry, using pyhf workspaces. We have just implemented the luminosity systematics (i.e. adding a systematic of type "lumi" to every sample that is not normalised anyway and adding a parameter named "lumi" to the Measurement. Thanks a lot, Just for reference, initially, I tried to name the luminosity differently (e.g. "Luminosity_run2") in the workspace, but the pyhf schema (I think the name is const "lumi" there) didn't let me when I then tried to create a model out of it:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @dbuchin, this is an inherent limitation in the way the built-in luminosity modifier in HistFactory works, for cases like you describe it is not suitable. I recommend not using this modifier at all and instead using The difference is that the built-in |
Beta Was this translation helpful? Give feedback.
Hi @dbuchin, this is an inherent limitation in the way the built-in luminosity modifier in HistFactory works, for cases like you describe it is not suitable. I recommend not using this modifier at all and instead using
normsys
modifiers instead. Here's an example for cabinetry. You get the same type of constraint term (Gaussian) and the full flexibility of naming and correlating in the way you want.The difference is that the built-in
lumi
has a few other convenience features allowing you to normalize your histograms in different ways. I think this is very rarely used in practice, at least in what I have encountered. There are also some potential issues related to this, see #1516 for deta…