Re: TEventList in ROOT 2.21

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Apr 23 1999 - 08:16:09 MEST


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



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:32 MET