gROOT->FindObject() returns nullptr for RooAbsArg descendants

RooFit objects inherited from RooAbsArg are not accessible via gROOT->FindObject(). Is this an intended behaviour? Please refer to the screenshot.

find-object-issue

Objects of following types return nullptr: RooRealVar, RooConstVar and RooStringVar. Maybe there is an issue in RooAbsArg?

Hi,

Not all created Objects are saved in the global lists of gROOT. This is valid for objects such as histograms or trees. For example also TGraph’s are not saved in the list.
So what you observe is expected

Lorenzo