Re: [ROOT] Accessing Legend

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Aug 06 2002 - 09:26:04 MEST


Hi Vitaliy,

 ntp->Draw("something")

produces a TH1F named "htemp" drawn in the current pad. You can do
  TH1F *htemp = (TH1F*)gPad->GetPrimitive("htemp");
  htemp->GetMean();

Rene Brun


On Mon, 5 Aug 2002, Vitaliy Ziskin wrote:

> Is there any way to access the numbers printed in the legend when I draw
> my entries from the ntuple., i.e. ntp->Draw("samething")-----> Get the
> mean and rms from the legend.
> 
>                                                     Thanks, Vitaliy
> 
> --
> =====================================================================
> Vitaliy Ziskin                                Tel: (617)253-9209
> MIT 26-547                          http://www.lns.mit.edu/people/vziskin/
> 77 Massachusetts Ave
> Cambridge, Ma
> 02139
> ======================================================================
>         "For long you live and high you fly
>          And smiles you'll give and tears you'll cry
>          And all you touch and all you see
>          Is all your life will ever be"--Pink Floyd
> 
> 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:03 MET