Dear experts,
In my macro i have model_0 ,which respesents background and its a composite model of both fractional and composite models and model_1 which represent signal+background .I perform 3 fits with 3 RooMCstudies.I n the 2nd case where fit model1 to generated data from model_0,pull distribution is not showing up,just an empty canvas and i think it has to do with output messege :
RooAbsMinimizerFcn: Minimized function has error status.
Returning maximum FCN so far (-inf) to force MIGRAD to back out of this region. Error log follows.
Parameter values: pullMean=-2 pullSigma=1
RooNLLVar::nll_pullGauss_fitParData_model_1_model_0[ parameters=(pullMean,pullSigma) ]
function value is NAN @ parameters=(pullMean = -2 +/- 0,pullSigma = 1 +/- 0)
RooGaussian::pullGauss[ x=Nexp_sigpull mean=pullMean sigma=pullSigma ]
getLogVal() top-level p.d.f evaluates to zero @ x=Nexp_sigpull=-4196.94, mean=pullMean=-2 +/- 0, sigma=pullSigma=1 +/- 0
getLogVal() top-level p.d.f evaluates to zero @ x=Nexp_sigpull=-4861.19, mean=pullMean=-2 +/- 0, sigma=pullSigma=1 +/- 0
getLogVal() top-level p.d.f evaluates to zero @ x=Nexp_sigpull=-4353.27, mean=pullMean=-2 +/- 0, sigma=pullSigma=1 +/- 0
getLogVal() top-level p.d.f evaluates to zero @ x=Nexp_sigpull=-4397.93, mean=pullMean=-2 +/- 0, sigma=pullSigma=1 +/- 0
getLogVal() top-level p.d.f evaluates to zero @ x=Nexp_sigpull=-4228.23, mean=pullMean=-2 +/- 0, sigma=pullSigma=1 +/- 0
getLogVal() top-level p.d.f evaluates to zero @ x=Nexp_sigpull=-4741.67, mean=pullMean=-2 +/- 0, sigma=pullSigma=1 +/- 0
getLogVal() top-level p.d.f evaluates to zero @ x=Nexp_sigpull=-4035.26, mean=pullMean=-2 +/- 0, sigma=pullSigma=1 +/- 0
getLogVal() top-level p.d.f evaluates to zero @ x=Nexp_sigpull=-4347.29, mean=pullMean=-2 +/- 0, sigma=pullSigma=1 +/- 0
getLogVal() top-level p.d.f evaluates to zero @ x=Nexp_sigpull=-4352.36, mean=pullMean=-2 +/- 0, sigma=pullSigma=1 +/- 0
getLogVal() top-level p.d.f evaluates to zero @ x=Nexp_sigpull=-4402.53, mean=pullMean=-2 +/- 0, sigma=pullSigma=1 +/- 0
getLogVal() top-level p.d.f evaluates to zero @ x=Nexp_sigpull=-4405.51, mean=pullMean=-2 +/- 0, sigma=pullSigma=1 +/- 0
getLogVal() top-level p.d.f evaluates to zero @ x=Nexp_sigpull=-4598.3, mean=pullMean=-2 +/- 0, sigma=pullSigma=1 +/- 0
... (remaining 2038 messages suppressed)
and so on.
All other pulls seem to be ok and fitting works well,even thought i get many error messenges. Do you have any hint about what causes this beheaviour and how to avoid it?
I attach my code as well as output log
Thank you in advance,
Artemis.
fit2.C (37.6 KB)