ERROR argument with name *** is already in this set

Dear Experts,
I’m generating a toy-MC in RooFit.

One of the variables of the pdf is called : “AfbS”

If I assign the limits of “AfbS” in the following way :
AfbS = new RooRealVar(“AfbS”,“Signal Afb”,AFB,-1.0,1.0);
Everything is ok.

Instead if I assign parametric limits to “AfbS”, as for example (FtS is, as well, a variable of the pdf) :
lowRangeS = new RooFormulaVar(“lowRangeS”,"-3/4*FtS",RooArgSet(FtS));
highRangeS = new RooFormulaVar(“highRangeS”,"3/4
FtS",RooArgSet(*FtS));
AfbS->setRange(*lowRangeS,*highRangeS);

I get the following error message :
[#0] ERROR:InputArguments – RooArgSet::checkForDup: ERROR argument with name AfbS is already in this set
MINUIT WARNING IN HESSE
============== Second derivative enters zero, param 1
MINUIT WARNING IN HESSE
============== Second derivative zero for parameter1
MINUIT WARNING IN HESSE
============== Second derivative zero for parameter1

Is this something I should be worry about ?
If yes, what shell I do ? What am I doing wrong ?

Thank you very much.

  • Mauro.
1 Like