Re: [ROOT] TEventList and TTree::Draw(...,nentries)

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Aug 13 2004 - 11:49:09 MEST


Hi Alexander,

Thanks for reporting this problem.
In case of a TEventList, the argument "nentries" of TTree::Draw was not used. In
this case, nentries was set to the number of entries in the TEventlist.
This problem is now fixed in the CVS version.

Rene Brun

Alexander Bürger wrote:
> 
> Hi Rene,
> 
> > > I would like to limit the number of entries processed by TTree::Draw. I
> > > find that
> > >
> > >     t.Draw("x", "", "", 123 )
> > >
> > > only stops after 123 events when as there is no eventlist set on the tree.
> 
> > I do not understand your question.
> > With:   t.Draw("x", "", "", 123 );
> > you should process 123 events.
> 
> It processes 123 entries if there is no eventlist. If I do
> t.SetEventList(somelist) before, all entries in the list are processed (I
> tried with nentries=0, 123, 198364918 for a list of 11000).
> 
> Alexander



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET