Re: TH1F -> TVector

From: Valeri Fine (Faine) (fine@bnl.gov)
Date: Sun Nov 14 1999 - 23:36:34 MET


----- Original Message ----- 
From: Sergio Ballestrero <sergio.ballestrero@cern.ch>
To: <roottalk@pcroot.cern.ch>
Subject: TH1F -> TVector


> 
>  Hello,
> just a newbie question: which is the best way to get a TH1F contents into
> a TVector ? i mean, is there any other way but looping on GetBinContent ?
> 
  Have a look at TH1F defintion:
http://root.cern.ch/root/html/TH1F.html

To see TH1F is derived from TArrayF and this way it does inherit all TArrayF 
methods.
see: http://root.cern.ch/root/html/TArrayF.html

 Hope this help,
                             Valery



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:42 MET