Re: very slow drawing

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Feb 05 1999 - 17:58:39 MET


Thomas Walter wrote:
> 
> Dear rooters,
> 
> my root-macro executes very fast until it reaches the part,
> where the postscript file is generated. The cpu-usage drops
> from about 99% to less then 3%.
> 
> I'm using root 2.0.13, intel linux, libc 5.
> 
> Here is the critical part of the macro:
> 
>       c1->cd();
>       hpad->Draw();
>       tpad->Draw();
>       for(t = 0; t < 50; t++) {
>         tt = aH * t;
>         sprintf(titleName, "Tracking %s Helix %s Thresold %d Meth %d",
>                 runName, SelHelix, t+thresmin, tracMeth);
>         padText.SetTitle(titleName);
>         tpad->cd();
>         ps->NewPage();
>         padText->Draw();
>         for ( i = 0; i < 7; i++) {
>           hpad->cd(i+1);
>           gPad->Clear();
>           ((TH1F*)(myHs[i+tt]))->Draw("");
>         }
>         hpad->cd(8);
>         myHt1->Draw("");
>         c1->Update();
>       }
> 
> What is my mistake?
> 

Thomas,
In this part of the macro, you draw 400 histograms. This may take a long
time
depending how many channels you have per histogram and your options.
Is your Postcript file generated on an AFS disk?
What is the size of the generated ps file?

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:29 MET