How to use the operator= in pyroot?

Dear experts,

Is there a way in pyroot to use the operator= of RooRealVar?
I tried the = operator in LCG_101/ROOT/6.24.06/x86_64-centos7-gcc11-opt, and it seems that it was interpreted as plain python-style assignment.

I’m trying to set the values of some RooRealVar variables from their values in a RooFitResults. Maybe there is an easier way to do this?

Thanks.

May be @moneta or @etejedor can help.

Hello,

You can use __assign__ from Python to call operator=. So e.g. rrv1.__assign__(rrv2).

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.