Greeting Rooters, I am having a bit of trouble with a fit. The program seeks to fit a mass distribution with 5 RooKeysPdfs. One of the parameters/components is flixed and the other 3 in the RooArgList are free to vary between 0 and 1.0. When I do the fit and print out the parameter values I get the parameters and their errors of the components within the RooArgList, but not the [%] component.
Below is a portion of the relevant code:
RooRealVar q1(*fix, "emp");
RooRealVar q2("dy", "coeff", 0.5,0.0, 1.);
RooRealVar q3("jpsi", "coeff", 0.2,0.0, 1.);
RooRealVar q4("psip", "coeff", 0.1,0.0, 1.);
RooRealVar q5("jmix", "coeff", 0.3,0.0, 1.);
RooAddPdf *model = new RooAddPdf("model", "model", RooArgList(*rap[1], *rap[2], *rap[3], *rap[4], *rap[5]), RooArgList(q1, q2, q3, q4));
RooFitResult *res = model -> fitTo(*rds[0], RooFit::Save(), PrintLevel(0), NumCPU(2,0), Minimizer("Minuit2","migrad"));
res -> Print();
The rap[i]'s are the pointers to the RooKeysPDFs and rds[0] is the RooDataSet being fit to.
Any help is greatly appreciated.