Hi @StephanH, thanks for your response. I can fill in some more details. In the attached plot, I find a disagreement between what RooAddPdf::getVal()
returns and what I expect. “Real Sum” shows the sum of [pdfA
normalized to varB.getVal()
] + [gaus
normalized to norm
]. “RooAddPdf” shows the output from model
normalized to model.expectedEvents()
.
However, when I look at model.expectedEvents()
, I find that this is equal to varB.getVal()+norm.getVal()
.
So my question really is: why aren’t these consistent? I think I’m missing something about what RooAddPdf
is doing such that my assumption that these should be the same is not correct. Thanks very much for your help.