[ROOT] TPaveStats problem

From: Dmitriy Bandourine (bandurin@fnal.gov)
Date: Wed Jun 06 2001 - 21:56:58 MEST


Hi dear Rooters,

I have tried to obtain a new statistics box with my named script
"run_reco.C" by the strings taken from User's guide v07 :
 
[...]
    TCanvas *c0 = new TCanvas("c0","Canvas",700,500);  
    h1->Draw();
    TPaveStats *st = (TPaveStats*) c0->GetPrimitive("stats");
    st->SetName("AAA");
    st->SetX1NDC(.55);
    st->SetX2NDC(.75);
    st->SetTextColor(2);
    h2->Draw("sames");
[...]

but I've got:
Error: illegal pointer to class object stt 0x0 122 FILE:run_reco.C LINE:95 

What's wrong in the code?

 - Dmitriy - 



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:48 MET