Re: TFormula: DefinedVariable()

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Aug 06 1999 - 09:29:52 MEST


Gene Van Buren wrote:
> 
> Thanks for explaining the behavior of virtual functions inside constructors to
> me, Philippe. But this still leaves unanswered what happens with DefinedValue(),
> which is not called from within the constructor, but from within Eval().
> 
> -Gene

Hi Gene, So much confusion with typing errors !
TTreeFormula::DefinedVariable redefines the implementation in
TFormula::DefinedVariable.
In an early implementation of the Trees, I implemented
TTreeFormula::DefinedValue and also TTreeFormula::DefinedString.
For reasons of performance, I then implemented the code in
TFormula::Eval
directly in its equivalent TTreeFormula::EvalInstance.
DefinedValue,String
are not used anymore in TTreeFormula.
I have now updated the comments in TFormula::DefinedValue to indicate
that this function may be redefined in a derived class without
mentionning
TTreeFormula.

Rene Brun



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