Re: TH1 and Fill

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Sat, 24 Apr 2010 07:05:02 +0200


Hi Marc,

To complement John's answer, it would be good if you could provide a very short example where you spend most of the time in TH1::Fill.

Rene Brun

Marc Escalier wrote:
> Dear rooters,
>
> after studying performance from a given program that fill a TH1
> histogram within a loop on events
>
> loop on the events of the tree
> myhisto->Fill(current event with variable)
>
> i see from a benchmark study that 90 % of the time is consumed by the
> myhisto->Fill(myvariable) command
>
> I was wondering if there are tricks to improve speed of this
> instruction ?
>
> thank you
>
Received on Sat Apr 24 2010 - 07:05:06 CEST

This archive was generated by hypermail 2.2.0 : Sat Apr 24 2010 - 11:50:01 CEST