Re: [ROOT] How to get the histogramm after the TChain->Draw method.

From: Benjamin E. Norman (bnorman@kent.edu)
Date: Mon Nov 20 2000 - 23:26:48 MET


In compiled code, you need to get a pointer to the histogram, there are no
CINT shortcuts.  See addition to your code below.

-Ben

----- Original Message -----
From: "Cyril Lachaud" <lachaud@lpnax1.in2p3.fr>
> Hi again,
>
> thank you for the answer... but I'm still not satisfied...
>
> Here is my code:
>
> fFiles_chained->Draw("variable");
> fHCanvas->Update(); // it gives me the good histogramm : htemp
> TH1F *htemp;
// right now, htemp is NULL.  Accessing it causes a segmentation violation.
htemp = gROOT->FindObject("htemp");
// now htemp points to the temporary histogram
> htemp->SetXTitle("toto");
>
> The last command gives the following error:
>  *** Break *** segmentation violation



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:37 MET