Possible depreciation in TMVA AddTree?

I’m currently using ROOT v. 6.19 TMVA to train a boosted decision tree. My code compiles and runs correctly when I add trees to my dataloader as

dataloader->AddSignalTree ( Signal_Tree, Signal_Weight );     

but I when I add trees as

dataloader->AddTree(Signal_Tree, "Signal", Signal_Weight, Signal_Cut );

(changing no other lines of my code) I get the errors:

Error in <TBranch::TBranch::WriteBasketImpl>: basket's WriteBuffer failed.

Error in <TBranch::TBranch::Fill>: Failed to write out basket.
This error is symptomatic of a Tree created as a memory-resident Tree
 Instead of doing:
    TTree *T = new TTree(...)
    TFile *f = new TFile(...)
 you should do:
    TFile *f = new TFile(...)
    TTree *T = new TTree(...)

Is it possible that the AddTree function no longer works for this version of ROOT? If so, is there any way to add TTrees into a dataloader cut that a different cut can be applied to each tree?

Thank you!

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