23 std::stringstream cmd;
24 cmd <<
"((TH1 *) " << std::hex << std::showbase << (size_t)obj <<
")->SetDirectory(nullptr);";
25 gROOT->ProcessLine(cmd.str().c_str());
27 std::stringstream cmd;
28 cmd <<
"((TF1 *) " << std::hex << std::showbase << (size_t)obj <<
")->AddToGlobalList(kFALSE);";
29 gROOT->ProcessLine(cmd.str().c_str());
TObject * fObj
! plain holder without IO
void ClearROOTOwnership(TObject *obj)
Check if object is not registered in some global lists Prevent double deletion.
void * TakeObject() final
Return TObject instance with ownership If object is not owned by the holder, it will be cloned (excep...
bool fOwner
! is TObject owner
Bool_t InheritsFrom(const char *cl) const override
Return kTRUE if this class inherits from a class with name "classname".
Mother of all ROOT objects.
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual TClass * IsA() const