Hi all,
I’m trying to move some of my C++ code to python, but I’ve found something I don’t understand during the porting.
As a MWE I have…
import ROOT
##---
Observable = ROOT.RooRealVar("Observable", "Observable", 0.1, 1.0)
c = ROOT.RooRealVar("c", "c", -2.0)
PDF = ROOT.RooExponential("PDF", "PDF", Observable, c)
##---
DataSet = PDF.generate(ROOT.RooArgSet(Observable), 10000)
Tree = DataSet.GetClonedTree()
##---
## Tree.SetNameTitle("Name", "Name")
Adding back in the line that calls .SetNameTitle() causes a crash during the shutdown of pyROOT/python/ROOT. Have I missed something somewhere?
Thanks,
Andy.