Hi Matthieu, Your example must work. It is a variant of our standard example in $ROOTSYS/tutorials/h1analysis.C Your example does not use Tree Friends. It should also work with Friends. Rene Brun On Tue, 9 Oct 2001, Matthieu Guillo wrote: > Hi Rooters, > > I would like to be sure of the behavior of a TEventList object when > applied to a TChain. > > For instance if I have: > > TChain chain("tree"); > chain.Add("monbeau.root"); > chain.Add("sapinroi.root"); > chain.Add("desforets.root"); > > TCut neutron_cut = "(missppp.M2()>0.713)&&(missppp.M2()<0.974)"; > tree->Draw(">> neutron_select", neutron_cut); > TEventList* neutron_select = (TEventList*) gDirectory->Get("neutron_select"); > > tree->SetEventList(neutron_select); > tree->Draw("pp.M2()"); > > > Does this work? I read somewhere in the ROOT talks that with tree friends > this can be a trouble, but what about TChain? > > I am using ROOT 3.02 > > Thanks > > Matthieu Guillo > University of South Carolina > Thomas Jefferson National Laboratory > Office 71 trailer 16 > Phone: 757-269-5551 >
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:02 MET