Hi everybody,
I am fitting a model to a weighted dataset this way :
RooDataSet data(.......,RooArgSet(x,w));
RooDataSet wdata(data->GetName(),data->GetTitle(),data,*data->get(),0,w->GetName()) //interpret w as a weight
RooAbsReal* nll =model->createNLL(wdata) ;
RooMinuit m(*nll) ;
m.setErrorLevel(2.73/2);
m.migrad();
m.hesse();
but I am wondering if this likelihood takes into account the weights in my dataset?
If not, is there a way in the same feeling that “fitTo(…,SumW2Error(kTRUE))” which takes them into account in the computation. Maybe you’ll advise me to use this method instead but I have not found a way to change the ErrorLevel when using a “fitTo”.
Thanks in advance,
Mathieu