Tree Draw with function call typo

T Auger (thauger@phns27.saclay.cea.fr)
Thu, 13 Aug 1998 15:36:14 +0200


Hi all,
I defined an event structure with function member like GetEnergy()
returning float or int. When I store the event in a tree with the
split set to 0, I can later on call the GetEnergy() method and
simply histogram the return values: the call looks like that:
T.Draw("event.GetEnergy()") .
This is very convenient for analysis
purpose since every quantity I need from an individual event, I made it a
function member.
My problem : when I make a typo in the function name and type for ex.
T.Draw("event.Getnergy()"), it produces a segmentation fault and I
loose the interactive access to the Tree object T. Is it possible to
implement a check for the method being called in order to avoid such
problem in case of typo?

cheers,
Thierry.