Re: [ROOT] Speed issues with filling histograms in TSelector

From: Jiri Masik (masik@pc203b.fzu.cz)
Date: Mon Apr 15 2002 - 13:07:37 MEST


Martin Turner <martin@hep.ph.liv.ac.uk> writes:

> It appears that my analysis macro takes a sweet 2 seconds to run provided
> there are only 37 out of the 40 histograms filled. If there are 38 or
> more, the job takes 32 seconds, which for a larger data sample makes my
> script not very practical. This is the case even when I comment out
> histograms that are not actually filled because they are dependent on a
> particular flag in an if statement! Another related mystery is when I do a
> cout<<.... in an if statement that is never passed, The time is takes for
> my script to complete is comparable to the time it takes to complete if
> the if statement does pass, yet I do not see the printout. Comment out the
> cout statement and I'm back on 2 seconds. Has anyone got any idea what's
> going on? I get the same problem running on two seperate computers with a
> Linux and IRIS OS.

Hi Martin,

how long does it take to run the quicker version of your macro with
cint optimisation disabled? (.O0 before you run your macro).
cheers
        Jiri



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:50 MET