Re: TColor problem?

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Mon, 16 Nov 2009 08:49:39 +0100


I cannot reproduce your timing problem with ACLIC. I see a constant time for each execution.

For the other problem, replace the statement

     can->cd(i+1)
by
  gPad = can->cd(i+1);

Rene Brun

Akira OKUMURA wrote:
> Hello ROOTers,
>
> I attache a short macro which shows younger students in my lab how to
> use different color palettes.
>
> When I run it using ACLiC, it works as I expected. But I have two
> problems. I still do not know which lines cause this problems.
>
> $ root -n
> root [0] .x color.C+ <= runs properly
> Info in <TUnixSystem::ACLiC>: creating shared library
> /Users/oxon/./color_C.so
>
> $ root -n
> root [0] .x color.C <= fails
> Error: non class,struct,union object $gPad used with . or -> color.C:68:
> *** Interpreter error recovered ***
>
> My questions are;
>
> Q1. I do not know why I cannot access gPad when I use CINT. What is
> the problem in my macro?
>
> Q2. The process of root.exe becomes slowly (i.e. high CPU load), when
> I execute the macro with ACLiC many times. What is the reason and how
> can I remove it?
>
> e.g. try
> root [0] .x color.C+
> root [1] .x color.C+
> root [2] .x color.C+
> root [3] .x color.C+
> root [4] .x color.C+
> root [5] .x color.C+
> root [6] .x color.C+
> .....
>
> I am using
> - ROOT 5.24.00 + Mac OS X 10.5.8 (intel)
> - ROOT 5.24.00 + SL 4.6 (64 bit)
>
> Thank you in advance.
>
> Regards,
>
> OKUMURA, Akira oxon_at_juno.phys.s.u-tokyo.ac.jp
> Department of Physics, The University of Tokyo
> 7-3-1 Hongo, Bunkyo-ku, Tokyo 113-0033
> TEL/FAX +81 3-5841-4173/4059
> Skype : okumura.akira
Received on Mon Nov 16 2009 - 08:49:42 CET

This archive was generated by hypermail 2.2.0 : Tue Nov 17 2009 - 17:50:03 CET