Hello,
I’m wondering if there is a quick and dirty way of creating a RooDataSet from an existing TTree while appyling selection criteria. I tried using CopyTree to create a subset tree applying my selection, however, CopyTree would crash whenever I applied more than 1 cut at a time:
Example: (This would work)
TTree *tree1 = t1->CopyTree(Jpsicut);
However this wouldn’t:
TTree *tree1 = t1->CopyTree(Jpsicut && DeltaEcut);
It would be nice to somehow use TEntryList. Is there a way to cast/store TEntryList as a TTree to be read into a RooDataSet?
Thanks,
Brandon Drummond