Re: [ROOT] TVector Probrem?

From: Masahiro Sugaya (sugayam@post.kek.jp)
Date: Mon Sep 10 2001 - 17:33:00 MEST


.In TH1D::TH1D(const TVectorD&), the initialization of fDimensions is
forgotten.
So add fDimensions = 1; at the end of the constructor  TH1D::TH1D(const
TVectorD&).




----- Original Message -----
From: Masahiro Sugaya
To: roottalk@pcroot.cern.ch
Sent: Monday, September 10, 2001 10:07 PM
Subject: [ROOT] TVector Probrem?


Hello,

My root is v3.2. linux.
I have question about the constructor of TH1D.

root[] TVector v(10);
root[] for(int i=0;i<10;i++) v(i) = i;
root[] TH1D hist(v);
root[] hist.Draw();

This draw only blank TH2 frame.

Masahiro Sugaya
Univ. of Tokyo.
email: sugayam@post.kek.jp



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:59 MET