Re: TColor problem?

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Tue, 17 Nov 2009 17:19:59 +0100


On Mon, 16 Nov 2009, Akira OKUMURA wrote:
> 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+

Hi Akira,

Attached is a version of your macro which doesn't slow down when you execute it several times. It computes the 3 palettes only once.

Cheers, Olivier

--
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910
E-Mail: Olivier.Couet_at_cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7670300

Received on Tue Nov 17 2009 - 17:20:06 CET

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