Re: TEventList in ROOT 2.21

Rene Brun (Rene.Brun@cern.ch)
Fri, 23 Apr 1999 06:16:09 +0000


Scott Sampson wrote:
>
> Hi,
>
> I make an event list and check the number of entries as follows:
>
> tree->Draw(">>evlist","x>0","GOFF");
> TEventList *evlist = (TEventList *)gDirectory->Get("evlist");
> Int_t nentries = evlist->GetN();
> cout << "List entries="<< nentries << endl;
>
> This works fine in the interpreter, but in a compiled program I always
> get an eventlist with 0 entries. I use root 2.21. When I instead compile
> with root 2.13, the TEventList does have entries and the compiled program
> works. Is there something wrong with how root 2.21 handles TEventList's in
> compiled code?
>

Hi Scott,
I cannot reproduce this problem.
Could you send me the result of the following code when used with
the interpreter AND the compiler?

tree->Draw(">>evlist","x>0","GOFF");
TEventList *evlist = (TEventList *)gDirectory->Get("evlist");
evlist->Dump();
evlist->Print();
Int_t nentries = evlist->GetN();
cout << "List entries="<< nentries << endl;

I am suspecting a mismatch between your header files and the libraries
when you use 2.21.

Rene Brun