Hi Martin, Use the "goff" option of TTree::Draw and use the return value, eg int nselected = tree.Draw("x","y<0","goff"); Rene Brun On Thu, 28 Mar 2002, Martin Turner wrote: > > I have a ready made tree and I want to make a selction on numerous leaves > that returns a yes or no answer on wether it has passed all the > cuts. Currently the only way I know how to do this is to make the > histogram using TTree::Project and then call GetSelectedRows(), but I was > wondering if there is a neater way to do it without making many > histograms that I never want to look at. > > Martin >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:47 MET