Re: TTree::GetMaximum

From: Rene Brun <>
Date: Fri, 29 Jul 2005 09:49:02 +0200 (MEST)

Hi Nicolas,

As indicated in the doc of TTree::GetMaximum

   "Return maximum of column with name columname" We could modify this function to accept a general expression, but your next question will be to specify a selection, may be with a graphical cut, a call to an external function, etc. This functionality is already in TTree::Draw. You can do the following:


Rene Brun

On Fri, 29
Jul 2005,
Nicolas wrote:

> Hi,
> it seems that
> Double_t TTree::GetMaximum(const char *columname)
> is really limited to return maximum of an existing variable in the tree.
> Is there a function that can return the maximum of an expression
> from the variables of the tree.
> I tried
> t->GetMaximum("time*24*3600")
> and I got answer 0 without any warnings which is what is should be looking at
> the code but not what I was expecting.
> Thanks
Received on Fri Jul 29 2005 - 09:49:07 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:11 MET