Hi Chris, ProcessCut and TTreeFormula should be able to coexist. However, it is easy to not get ot right. Please send me some of your code so that I can take a closer look. Cheers, Philippe -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Chris Roat Sent: Wednesday, December 19, 2001 1:03 PM To: roottalk@pcroot.cern.ch Subject: [ROOT] TTreeFormula within TSelector::ProcessCut Hi ROOT, I'm having problems finding out if a particular entry in a tree passes a cut. I'm using a TSelector which takes recieves a list of strings (which are cuts, of the form "p>3" or "myBool" from the outside world). During ProcessCut/ProcessFill, I would like to see if the entry I'm on passes any of the strings. I am trying to use TTreeFormula to tackle this, but without prolonged luck. It works fine on the first entry - EvalInstance(0) returns the correct answer, so I'm on the right track. However, EvalInstance(0) seg faults on subsequent entries. Could there be a problem with ProcessCut() and EvalInstance() both getting info from the tree? Thanks for any insight, Chris
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:12 MET