Hi Birger,
I cannot reproduce this problem. Could you send me a script
that i could use to investigate?
Rene Brun
Birger Koblitz wrote:
>
> Hi,
>
> can someone explain this behaviour:
>
> root [62] float sum=0.
> root [63] float s=0.
> root [64] for(int ll=1; ll<101; ll++){s=h02->GetBinContent(ll);sum=sum+s;};
> root [65] sum
> (float)1.00000011920928955e+00 !!!!!!!!!!!!!!!!!
> root [66] sum=0.
> (const double)0.00000000000000000e+00
> root [67] for(int ll=1; ll<101; ll++){sum+=h02->GetBinContent(ll);};
> root [68] sum
> (float)3.94031524658203125e-01 ?????????????????
>
> The first answer is correct, the second is not, it's the content of the
> first bin. h02 is the name of some histogram.
> Using Root Version 3.01/06 13 September 2001
>
> Cheers,
> Birger
>
> ------------------------------------------------------------
> Birger Koblitz koblitz@mail.desy.de ("-/")_.-'"-._
> MPI für Physik . . ; -._ )-;-,_)
> c/o DESY-FH1 Tel. (40) 8998-3971 (v_,)' _ )-.\ -'
> Notkestr. 85 _.- _..-_/ / ((.'
> D-22603 HAMBURG ((,.-' ((,/
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:50 MET