Re: TFormula: DefinedVariable()

From: Gene Van Buren (genevb@rcf.rhic.bnl.gov)
Date: Thu Aug 05 1999 - 18:19:49 MEST


Actually, I made some mistakes in tht email I sent. I am in fact using Root 2.22.
I meant to discuss DefinedValue(), not DefinedVariable(). I have made a derived
class of TFormula which has its own DefinedVariable() and DefinedValue() member
functions. I see that TTreeFormula does not have a DefinedValue() member function
(although it does have a DefinedVariabl() member function).

Anyhow, the behavior I get is:
If I pass the expression through the TFormula constructor, then the
Compile()->Analyze()->DefinedVariable() chain seems to call TFormula's
DefinedVariable() instead of mine. If intead I provide no expression
in the constructor, but then call Compile() in the code of the derived
class's constructor, it uses _my_ DefinedVariable(). Lastly, when I
call the Eval() member function of the class, once again, it calls the
DefinedValue() of the TFormula base class instead of mine.

I'm sorry I made some mistakes in my first description of the problem.
Any help is appreciated.

-Gene Van Buren



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:37 MET