Re: How to detect if a TAxis object uses variable bin sizes?

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Wed, 17 May 2006 19:45:36 +0200


Hi Gero,

Thanks for the suggestion.
Now implemented in CVS head.

Rene Brun

Gero FLUCKE wrote:
> On Tue, 16 May 2006, Rene Brun wrote:
>
>
>> eg,
>> h->GetXaxis()->GetXbins()->fN (public member of TArray)
>>
>
> You should probably avoid accessing a public data member, so use
>
> h->GetXaxis()->GetXbins()->GetSize()
>
> which is the same.
> But I think it would be worth to add an accessor like
>
> Bool_t TAxis::IsVariableBinSize() const
> {
> // true if axis has variable bin sizes, false otherwise
> return (fXbins.GetSize() != 0);
> }
>
> Cheers
> Gero
>
>
>> Rene Brun
>>
>>
>> Pierre-Luc Drouin wrote:
>>
>>> Hi,
>>>
>>> I have looked through the TAxis code and I have not found a member function
>>> that probes the value of fXbins.fN to indicate the user if the TAxis object
>>> has variable bin size or not. Is there an other way for the user to get this
>>> information? (other than looping over all bins)
>>>
>>> Thanks!
>>>
>>> Pierre-Luc Drouin
>>>
>>
>
>
Received on Wed May 17 2006 - 19:45:48 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:58 MET