Re: getting variable size bins array

From: Germano Percossi <germano.percossi_at_roma2.infn.it>
Date: Mon, 05 Sep 2005 19:26:15 +0200


Balint Radics wrote:
> Hi,
>
> I use Root 4.04/02b.
>
> I have a variable size binned TH1D histo. I want to get the list of low
> edges of the bins in an array. Of course it is trivial with the
> GetBinLowEdge(Int_t bin) function but why isn't an Axis_t* GetBins()
> implemented if there is already a SetBins(Int_t nx, const Axis_t* xBins)
> function?
>
> If there is a function

I don't know if I've understood correctly but I think you need

histo->GetXaxis()->GetXbins()

 you'll get a TArrayD object

Regards, Germano



Germano Percossi
University of Rome "Tor Vergata" and INFN Roma2 Via della Ricerca Scientifica 1
I-00133 Rome Italy
Phone     : 06 7259 4824
Room      : c0 28b
------------------------------------------------------------
Received on Mon Sep 05 2005 - 19:31:10 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:12 MET