Hi Julien,
did you use the "LIST" option when drawing the hist?
As I understand the contour is added to ListOfSpecials when the
hist gets painted a n d the "LIST: option is set.
Cheers
Otto
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
>
>
-- Dr. Otto Schaile Department f"ur Physik, LMU M"unchen Phone: +49 89 289 14070 Am Coulombwall 1, D-85748 Garching, Germany Mobil: +49 160 1553598 FAX: +49 89 289 14072 EMail: Otto.Schaile_at_Physik.Uni-Muenchen.DEReceived on Thu Oct 26 2006 - 09:39:24 MEST
- application/x-pkcs7-signature attachment: S/MIME Cryptographic Signature
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:01 MET