Hi Heather, > Is it possible to call TMath::Min from within a TCut No it is not. The formula used by TTree::Draw and the same as the TFormula. It is only a limited subset of C++ which is described at http://root.cern.ch/root/html/TFormula.html#TFormula:Analyze. Cheers, Philippe. -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Heather Kelly Sent: Wednesday, October 24, 2001 4:17 PM To: roottalk@pcroot.cern.ch Subject: [ROOT] MakeClass and TEventList Hi, I am using ROOT 3.00.06 on Windows. 2 questions: In the code generated by TTree::MakeClass, would it be possible to include code that would use a TEventList if the TTree is setup to use a TEventList? It is certainly possible to modify the code to use the eventlist - but it would be nice if it were done automatically...or am I using the MakeClass code incorrectly? Second question: Is it possible to call TMath::Min from within a TCut passed to a TTree:Draw? It does not seem to work for me: t->Draw("Event_Id", "TMath::Min(entry1, entry2) < 5"); I've tried Min as well.. Thanks, Heather
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:04 MET