Tree Draw with function call typo

From: T Auger (thauger@phns27.saclay.cea.fr)
Date: Thu Aug 13 1998 - 15:36:14 MEST


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. 



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