Re: [ROOT] Statistics Box

From: Ingo Strauch (strauch@mail.desy.de)
Date: Fri Aug 16 2002 - 11:52:30 MEST


Thomas Bretz wrote:
> 
> Hi,
> 
> what's wrong with this:
> TH1 *obj = (TH1*)myhist->DrawCopy();
> gPad->Modified();
> gPad->Update();
> TPaveStats *p = (TPaveStats*)obj->GetListOfFunctions()->FindObject("stats");
> if (s==NULL)
>    cout << "Is Null!" << endl;
> 
> Why don't I get a pointer to the TPaveStats object?

I'm using 

  thepave=(TPave*)gPad->GetListOfPrimitives()->FindObject("stats");

in my code (ROOT 3.02/07).

Cheers,
Ingo

-- 
"What're quantum mechanics?"
"I don't know. People who repair quantums I suppose."
                                     --Rincewind, Terry Pratchett "Eric"



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