[ROOT] (TGraph*)gPad->GetPrimitive("Graph");

From: Vincent Roberfroid (roberfroid@fynu.ucl.ac.be)
Date: Wed Nov 17 2004 - 19:38:09 MET


 Dear root users,

I try this simple macro in root and it crashs (using root 4.01/03). 
Could you help me ?
      
        TCanvas *c1 = new TCanvas("c1","Rate and efficiencies",0,0,500,800);
        TNtuple *nt = a.GetTNtuple("nt");
        nt->Draw("c1:c2");
        TGraph *Gtemp = (TGraph*)gPad->GetPrimitive("Graph");
        TH1F *hEff=c1->DrawFrame(0,0,600,1.2);
        Gtemp->Draw("*L");

Thanks,

Vincent



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET