fixing fakes normalization and histogram dimension checking
Fakes normalization:
- In the
RooUnfoldBayes
method, the fakes were not normalized: since the linethis->_Nji = this->_res->Mresponse(true);
returns a normalized_Nji
, the fakes should be assigned withthis->_Nji(i,this->_nc-1)= fakes[i]/nfakes;
Dimension/bin counting in RooUnfoldResponse
:
- the internal TH1 creation double counted the number of bins.
- Dimension check in the for
_res
need to use the_overflow
flag to properly compare with the 1D measure and truth.