Contours in a compiled code

From: Julien Bolmont <julien.bolmont_at_ifh.de>
Date: Wed, 25 Oct 2006 11:48:05 +0200

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 Received on Wed Oct 25 2006 - 11:48:21 MEST

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