Hello all,
When using a RooHistPdf, is it possible to return the value of the PDF for each bin?
I construct the RooHistPdf using a TH1F and a RooDataHist as follows:
TH1F *Hist = new TH1F("", “”, 5,-0.80,1.00);
Hist->Sumw2();
Hist->SetBinContent( 1, val_1); Hist->SetBinError( 1, err_1);
…
RooDataHist *DataHist = new RooDataHist("", “”, RooArgList(Var), Hist);
RooHistPdf *HistPdf = new RooHistPdf( “HistPdf” , “HistPdfF”, RooArgList(Var), *DataHist, 0);
Clearly, the values in the bins of the TH1F and the RooDataHist are the values that I enter (val_1, val_2,…). However, the RooHistPdf normalizes the distribution to 1. So, I need the normalized values in each bin.
Is there a simple way to write out the values of the bins in the RooHistPdf?
Thanks in advance,
Pablo