When I try to add a constant parameter
myNorm to the measurement in HistFactory, it complains along the following lines
could not corresponding auxiliary measurement nom_myNorm
I am attaching a slightly modified version of the histfactory tutorial hf001_example.C. I have added the lines
signal.AddNormFactor("myNorm", 1, 0, 2); meas.AddConstantParam("myNorm");
Why does HistFactory make this complaint for the constant parameter I add, and not for the constant parameter that is added earlier in the tutorial?
I will note that in the later stages of the output that HistFactory spits out when running this code, I see
[#2] INFO:HistFactory -- setting myNorm constant
so it does set the parameter constant later. So I am even more unsure of what the error is saying.
Further, I wanted to point out that doing
signal.AddNormFactor("myNorm", 1, 0, 2, true);
does not actually make the parameter constant in the fit, clashing with the HistFactory::Sample AddNormFactor() documentation which has the last parameter as a boolean named Const.
PS: I am running ROOT 6.22.06 on lxplus, invoked by
hf001_example_modified.C (2.5 KB)