Please see the TH1 documentation. Use virtual void SetContent(const Stat_t *content); virtual void SetError(const Stat_t *error); If you have a histogram with N bins Bin number 0 is underflow Bin number N+1 is overflow so your array content and error must be of size N+2 Rene Brun Bernard Andrieu wrote: > > Hello, > > what is the simplest way of filling an existing 1d-histogram with the values of > two vectors, one for the contents, one for the errors? > > In other words, I'm looking for a root equivalent to PAW commands put/contents > and put/errors. > > Thanks for help. > -- > Best regards, > Bernard Andrieu > ----------------------------------------------------------------------- > ("-/")_.-'"-._ > LPNHE, 4 pl. Jussieu . . ; -._ )-;-,_) email: andrieu@in2p3.fr > Tour 33, RdC (v_,)' _ )-.\ -' Tel: +33 (0)1 4427 2321 > 75252 PARIS CEDEX 05 _.- _..-_/ / ((.' Fax: +33 (0)1 4427 4638 > ((,.-' ((,/ > -----------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET