Constrain problem

Hi all,

I am using Roofit in order to fit MC pdfs to data. In my code I am using
a pdf model which is combining sum of 3 pdfs. I was able to Gaussian
constrain one of my parameter using:

RooGaussian
fconstraint(“fconstraint”,“fconstraint”,nbi,RooConst(mean),RooConst(sigma)

r2=sum.fitTo(data,RooFit::Extended(kTRUE),ExternalConstraints(fconstraint),Save());

However, now I would like to constrain more than one parameter
simultanously (nbi and ntl). Is there anyway to constrain more than one
parameter in ROOFit?

Cheers,
Maryam

Hi Maryam,

I recommend you try posting this issue in the Math and Stats forum.

Cheers,
Philippe.