The filled DataHist from a TH1 has a different distribution with respect to the original TH1 one.
Also, when looking at specific values using .GetBinContent() for TH1 and .weight() for DataHist the output is different. The binning is the same.
What am I doing wrong? They are supposed to be the same right?
Hi,
What is pT_array[5]? Note that the indexing of RooDataHist starts from zero, while for ROOT histograms starts from 1. The bin with index=0 is the underflow one
I see. But the weird thing is that when I plot the DataHist with plotOn it shows different values than when using .weight() method. Can you explain to me why? Also, I would like to know how to disable the normalization option in the plotOn method.