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());
bool fOwner
! is TObject owner
void ClearROOTOwnership(TObject *obj)
Check if object is not registered in some global lists Prevent double deletion.
TObject * fObj
! plain holder without IO
void * TakeObject() final
Return TObject instance with ownership If object is not owned by the holder, it will be cloned (excep...
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".