Hello,

I am trying to convolute a pdf with a RooGaussModel, but I get strange shape of the pdf at the end and many messages that the pdf value is nan.

[#0] ERROR:Eval – RooAbsReal::logEvalError(myAcc_NumConv_PdfClone) evaluation error,

origin : RooGenericPdf::myAcc_NumConv_PdfClone[ actualVars=(t,var_a,var_c) formula=“TMath::Power( (var_a*t), var_c) / (1+ TMath::Power( (var_a*t), var_c) )” ]

message : p.d.f value is Not-a-Number (nan), forcing value to zero

server values: actualVars=(t = -1,var_a = 0.84,var_c = 2.16)

[#0] ERROR:Eval – RooAbsReal::logEvalError(myAcc_NumConv_PdfClone) evaluation error,

origin : RooGenericPdf::myAcc_NumConv_PdfClone[ actualVars=(t,var_a,var_c) formula=“TMath::Power( (var_a*t), var_c) / (1+ TMath::Power( (var_a*t), var_c) )” ]

Can someone spot what is wrong?

I am aware that I can do this by RooBDecay very easily, but I want to multiply my lifetime distribution with an acceptance BEFORE convoluting the distribution with a resolution function. But using RooBDecay I can do these operations the other way round.

Regards

Fatima Soomro

Fitting.pdf (15 KB)