TTree::Draw bug?

From: Andre Lebedev <>
Date: Tue, 28 Nov 2006 10:48:44 -0500

Hello, ROOTers.

I believe there is a bug in TTree::Draw() when the variable to be drawn has no range. That is I have a tree where for some selection of cuts one of the variables is 1e9. If I do

swtest->Draw("x2[0]>>h(100,0,1.1e9)", "z<-830")

everything goes through ok. However, if I do

swtest->Draw("x2[0]", "z<-830")

The code prints the number of events that pass the cut and then hangs in
#0 0x0076b501 in isnan () from /lib/
#1 0x00768a5b in pow () from /lib/
#2 0x0195009c in TGaxis::PaintAxis ()

   from /usr/local/mipp/extern/root-5.12.00f/lib/
#3 0x01c45f95 in THistPainter::PaintAxis ()

   from /usr/local/mipp/extern/root-5.12.00f/lib/
#4 0x01c428a3 in THistPainter::Paint ()

   from /usr/local/mipp/extern/root-5.12.00f/lib/
#5 0x02063775 in TH1::Paint ()

   from /usr/local/mipp/extern/root-5.12.00f/lib/

I am running ROOT 5.12/00f on gcc 4.1.1. However, I don't see the same problem in ROOT 5.10/00 built on gcc-3.3.4.

Andre. Received on Tue Nov 28 2006 - 16:49:01 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:02 MET