TEventList in ROOT 2.21

Scott Sampson (sampson@nevis1.nevis.columbia.edu)
Thu, 22 Apr 1999 13:49:06 -0400


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?

Thanks,

Scott