RE: Contours in a compiled code

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Thu, 26 Oct 2006 14:25:42 +0200


Can you send a small macro reproducing you problem ? Also, on which platform are you running your program ?

-----Original Message-----
From: Julien Bolmont [mailto:julien.bolmont_at_ifh.de] Sent: Wednesday, October 25, 2006 1:19 PM To: Olivier Couet
Cc: ROOT Talk
Subject: Re: [ROOT] Contours in a compiled code

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:25:49 MEST

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