Thank you for your reply.
I have another question.
If we use the command “getValue” to obtain the value of the histpdf, and fill a histo. there is no pits,
"
TH2D * histpdf = new TH2D(“histpdf”,“HISTPDF”,200,x_min,x_max,200, x_min,x_max);
for (int i = 0; i < histpdf->GetXaxis()->GetNbins(); ++i) {
for (int j = 0; j < histpdf->GetYaxis()->GetNbins(); ++j) {
double xx = histpdf->GetXaxis()->GetBinCenter(i);
double yy = histpdf->GetYaxis()->GetBinCenter(j);
x.setVal(xx);
y.setVal(yy);
histpdf->SetBinContent(i,j, sigshape.getVal() );
}
}
"
does it mean that when we fit data with such histpdf, each time the histpdf is random sampled by getValue
command. In such way, the fitting precedure is ok since it will introduce no pits when fitting.
Did the histpdf influnce our fitting result ?
yateng