[ROOT] hist->Scale problem

From: payman hosseini (phossein@midway.uchicago.edu)
Date: Mon Dec 22 2003 - 04:28:02 MET


hi

say i have:
TH1F * n = new TH1F("n","n",10,0,10)
n->Fill(5)
n->Draw();

this will correctly show one bar in bin 6.
now if i do:
int j=5
n->Scale(1/j)

then the histogram becomes zero.
but if i do 
n->Scale(.2)
every thing works fine


is this supposed to happen?

thanks
paymon



> i am using:
> Windows/NT/w2000 with VC++ 7.0,compiled with debug info, version 3.10/02
> (good old tar file)**WIN32GDKDEBUG 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET