Empty pointer in pyROOT

so I null_th1d = ROOT.MakeNullPointer("TH1D")
and the value of null_th1d is <cppyy.gbl.TH1D object at 0x(nil)>
how do i test if this python object is <cppyy.gbl.TH1D object at 0x(nil)> ?

is there any “IsNull” method for TObject?

if not null_th1d

should work?

seems not.
so i tried ROOT.addressof(****) and test if this returns 0

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