Invalid weight in TFractionFitter

Hi I am trying to fit some data using TFractionFitter with weighted MC, but I got the following error
Error in <TFractionFitter::ComputeFCN>: Invalid weight encountered for MC source 0

After a bit digging, I found there is a check in TFractionFitter to ensure the weight is greater than 0. But in my MC, some bins are empty and thus those bin in the weights histogram would also be 0. What should I do?

Thank you

@moneta, can you help?

Hi,

I would try setting a non-zero weight value for those bins. It is true if the MC content is also zero , the weight value should not matter

Lorenzo

I will do that thank you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.