I am using PyROOT, and trying to run CopyTree(), however I receive a segmentation violation when I run the following code:
from ROOT import TFile, TTree, TChain
c = TChain()
c.AddFile('myfile.root')
t = c.CopyTree('something > 0')
If I do the same thing using the ROOT interpreter it works fine and without errors. I’ve tried this in both ROOT v4 and v5, so I think that perhaps I am missing a step that needs to be done in PyROOT?
Thank you.