Dear experts,
I using pyroot.
I found in python, the following lines are ok:
import ROOT as rt
rt.RooArgList(rt.RooRealConstant.value(1), "NR")
However, the following lines have an error:
import ROOT as rt
rt.RooArgList(rt.RooRealConstant.value(1),rt.RooRealConstant.value(1), "NR")
The error is:
IncrementalExecutor::executeFunction: symbol '_ZN10RooArgList11processArgsIJRK9RooAbsArgR11RooConstVarNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvDpOT_' unresolved while linking symbol '__cf_12'!
You are probably missing the definition of void RooArgList::processArgs<RooAbsArg const&, RooConstVar&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(RooAbsArg const&, RooConstVar&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)
Maybe you need to load the corresponding shared library?
This is very strange. The second snippet works in C++. I suppose that this is a bug.
The python version is 3.10.5 and the root version is 6.26/04.
Both are installed with conda.
Thanks in advance for kind reply.
Best Wishes,
Zhihong Shen