Re: Why Axis_t for TH2D?

Rene Brun (Rene.Brun@cern.ch)
Wed, 14 Jul 1999 13:49:15 +0000


Hi Michael,
We set private the TH1:Fill(Axis_t, Stat_t) for 2-d histograms to
prevent
confusion with the function filling a 1-d histogram.
Use TH1::Fill(Axis_t,Axis_t,1.) in your case.

Rene Brun

M. Sievers wrote:
>
> Hello,
>
> I just stumbled over the fact that I can not use two doubles to fill a
> 2d-histogram. Is there a reason why this can't be done? I have to cast all
> to floats as of now. Automatic conversion fails, because Fill(Axis_t,
> Stat_t) is defined as protected, which is obviously tried before
> Fill(Axis_t, Axis_t) when Fill is called with (Stat_t, Stat_t), i.e. two
> doubles.
>
> Bye,
> Michael
>
> --------------------------------------------------------------------------
> Michael Sievers
> Michael.Sievers@desy.de
> --------------------------------------------------------------------------
> Plug-and-Play is really nice, unfortunately it only works 50% of the time.
> To be specific the "Plug" almost always works. --unknown source