Closed yipengsun closed 3 years ago
In Manuel's BaBar code (plot_q2_2hdm.cxx
), he did not use TF1
; instead, he filled a TH1F
histogram with explicit binning and q2
calculated at center of the bin.
Here's some non-working plot. The main problem now is the normalization:
I also tried to compute total number of entries with histogram.GetIntegral()
, and the result is 0. This is likely due to each bin content is too small (1E-15
)
@manuelfs I've updated a plot that's been heavily tweaked in umd-lhcb/lhcb-ntuples-gen#51. Here I want to offer a little explanation on why this takes ~1 week to finish.
histo.Scale(1/histo.Integral())
, and I got something like this:
TH1D
, and it seems that my method was mostly right (sans the option width
)We consider this validated. The thing to keep in mind is that it might be useful to make reference curves binned in the same way as data/MC to make comparison easier.
To do that, one needs to integrate the continuous function inside each bin.
Here I'll record more details about validation mentioned in umd-lhcb/lhcb-ntuples-gen#51.