I’ve a problem with TTRee::MakeClass. I’m using the SVN version with a fixed problem, it substitues the “,” with “_” , but the class doesn’t work. I attach my TTree. What I do is:
TString nameFile = "decaytree.root"
TFile f(nameFile);
TDirectory* dir = (TDirectory*) f.Get("DsDs");
TTree* t = (TTree*) dir->Get("Selection");
t->MakeClass("MyClass");
.L MyClass.C
MyClass t
t.GetEntry(12);
and I get a segmentation fault and a lot of errors. decaytree.root (1.18 MB)
I forgot to replace the comma when generating teh code for the branch declaration. Now fixed in SVN. I tested that it works with your example. Thanks for the report.