Using TEventList

Scott Sampson (scott@znev03.desy.de)
Sun, 31 May 1998 15:46:15 +0200 (MET DST)


Hi,

I'm having trouble using TEventList. I try the following on a TTree h1:

TCut acut "Pt>25";
TEventList *nlist = (TEventList *)h1->Select(acut);
nlist->Print();
Error: illegal pointer to class object nlist 0x0 258 . . .

could you give an example of how to get an EventList from a Tree? In the
end I want to print out some variables (e.g. run number) for the events
which pass the cut TCut. Thanks,

Scott