Dear experts,
I’m generating ROOT code with the instruction:
RooAbsPdf* _AnglesPDF = RooClassFactory::makePdfInstance("_AngleS","_AngleS",RooArgSet(*VarsAng));
Then, when I try to use the generated classe in the following way:
RooAbsPdf* _AnglesPDF = new Roo_AngleSPdf("_AngleS","_AngleS",RooArgSet(*VarsAng));
I get the following error message:
ExtractYield.cc:983:33: error: no matching constructor for initialization of 'Roo_AngleSPdf' RooAbsPdf* _AnglesPDF = new Roo_AngleSPdf("_AngleS","_AngleS",*VarsAng); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Roo_AngleSPdf.h:26:3: note: candidate constructor not viable: requires at most 2 arguments, but 3 were provided Roo_AngleSPdf(const Roo_AngleSPdf& other, const char* name=0) ; ^ ./Roo_AngleSPdf.h:18:3: note: candidate constructor not viable: requires 0 arguments, but 3 were provided Roo_AngleSPdf() {} ; ^ ./Roo_AngleSPdf.h:19:3: note: candidate constructor not viable: requires 8 arguments, but 3 were provided Roo_AngleSPdf(const char *name, const char *title, ^ 1 error generated.
Why it doesn’t understand RooArgSet
?
How shall I change the code in order to make it work ?
Many thanks for your support.
- Mauro.