Re: Contours in a compiled code

From: Julien Bolmont <julien.bolmont_at_ifh.de>
Date: Wed, 25 Oct 2006 13:18:44 +0200

No, but when I do that, I get

when
gPad->Update();
is executed.

Le 25 oct. 06 à 13:06, Olivier Couet a écrit :

>
> have you done gPad->Update(); before gROOT->GetListOfSpecials() ?
>
> O.Couet
>
> On Wed, 25 Oct 2006, Julien Bolmont wrote:
>
>>
>> Hi rooters,
>>
>> I have a problem trying to plot contours of a TH2D histogram.
>> When I run tutorials/ContourList.C, everything is fine.
>> When I run MY program as a macro, everything is fine.
>>
>> When I turned my macro into a COMPILED program (I need to do that
>> anyway), the
>> line
>>> TObjArray *conts = (TObjArray *)gROOT->GetListOfSpecials()-
>>> FindObject("contours");
>> always gives me a NULL pointer.
>>
>> The contour is defined by
>>> Double_t CONT[1] = {3.85};
>>> hchi2d->SetContour(1, CONT);
>> where hchi2d is the histogram from which I want to get the contour.
>>
>> Does the synthax
>>> TObjArray *conts = (TObjArray *)gROOT->GetListOfSpecials()-
>>> FindObject("contours");
>> should be modified to work in a compiled program ?
>>
>> Thanks for your help !
>> Julien
>>
>>
>> ROOT 5.12.00 binary distribution
>> Mac OS X.4.8, gcc4
>>
>>
>
> --
> Org: CERN - European Laboratory for Particle Physics.
> Mail: 1211 Geneve 23 - Switzerland Mailbox:
> J25910
> E-Mail: Olivier.Couet_at_cern.ch Phone:
> +41 22 7676522
> WWW: http://cern.ch/Olivier.Couet/ Fax:
> +41 22 7670300
Received on Thu Oct 26 2006 - 14:21:50 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:01 MET