[ROOT] TTreeFormula within TSelector::ProcessCut

From: Chris Roat (croat@SLAC.stanford.edu)
Date: Wed Dec 19 2001 - 20:03:09 MET


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