Dear Rooters,
I would like to know how can I get the value of a fitted pdf at a certain point.
I am using the piece of code bellow :
RooRealVar* x = ws->var("x"); RooAbsPdf* model = ws->pdf("model"); RooArgSet obs(*x) ; x->setVal( x_i) ; Double_t weight = model->getVal( &obs ) ;
where "ws" is my RooWorkSpace and "x" my observable. First I fit the PDF and after when I Iterate over all x_i values in the x's range, sometimes it produces values greater than 1 !!!!
Please can someone help me?
Thanks
A.A.
Received on Wed Jun 13 2012 - 17:43:52 CEST
This archive was generated by hypermail 2.2.0 : Wed Jun 13 2012 - 23:50:01 CEST