Re: TTree::Scan bug
Rene Brun (Rene.Brun@cern.ch)
Fri, 30 Oct 1998 11:57:26 +0100
mayer@ik1.fzk.de wrote:
>
> Dear rooters
>
> There seems to be a bug in the Ttree::Scan() member function in root 2.012
> at least under DEC OSF1
>
> Scanning a tree for the event ID variable Idev, I get with root 2.011
> the correct output:
>
> root [4] h1.Scan("Idev")
> ************************
> * Row * Idev *
> ************************
> * 0 * 1 *
> * 1 * -2 *
> * 2 * -3 *
> * 3 * 4 *
> * 4 * 5 *
> * 5 * 6 *
> * 6 * 7 *
> * 7 * 8 *
> * 8 * 9 *
> * 9 * 10 *
> * 10 * 11 *
> * 11 * 12 *
> * 12 * 13 *
> * 13 * -14 *
> * 14 * 15 *
>
> but with version 2.012 I get wrong representation of negative values:
>
> root [4] h1.Scan("Idev")
> ************************
> * Row * Idev *
> ************************
> * 0 * 1 *
> * 1 * 4.295e+09 *
> * 2 * 4.295e+09 *
> * 3 * 4 *
> * 4 * 5 *
> * 5 * 6 *
> * 6 * 7 *
> * 7 * 8 *
> * 8 * 9 *
> * 9 * 10 *
> * 10 * 11 *
> * 11 * 12 *
> * 12 * 13 *
> * 13 * 4.295e+09 *
> * 14 * 15 *
>
This problem has been fixed in Root version 2.00/13.
It was affecting variables of type unsigned integer.
Rene Brun