[ROOT] [Fwd: TTree->Draw does not accept "=" as Boolean operation]
From: Malcolm Davidson (davidson@cesbio.cnes.fr)
Date: Tue Dec 05 2000 - 15:32:27 MET
Sorry,
Forgot that in C++ we use == and
iem_data->Draw("shh:reps","theta==25") works fine.
Thanks
Malcolm
--
<>------------------------------------------------<>
Malcolm W. J. Davidson
Centre D'Etudes Spatiales de la Biosphere (CESBIO)
UMR 5639 CNES-CNRS-UPS
18, Avenue Edouard Belin
F-31401 Toulouse Cedex 4
FRANCE
e-mail : davidson@cesbio.cnes.fr
phone (33)(0)5.61.55.85.84
fax (33)(0)5.61.55.85.00
<>------------------------------------------------<>
attached mail follows:
Hello,
I'm using the TTree Draw method for displaying histograms and was very
surprised that the following
worked:
iem_data->Draw("shh:reps","theta <=25") // Draw all coefficients for
incidence angles le to 25 degrees
whereas the following did not (I do have theta's = 25 in the ntuple)
root [7] iem_data->Draw("shh:reps","theta=25")
iem_data->Draw("shh:reps","theta=25")
*ERROR 26 :
Unknown name : "theta=25"
(Int_t)(-1)
Is this normal ? It seems to me that the equal condition is quite
important as well ?
Many thanks in advance.
Malcolm
p.s. I am using root compiled on Linux Mandrake 7.2 (i386).
<>------------------------------------------------<>
Malcolm W. J. Davidson
Centre D'Etudes Spatiales de la Biosphere (CESBIO)
UMR 5639 CNES-CNRS-UPS
18, Avenue Edouard Belin
F-31401 Toulouse Cedex 4
FRANCE
e-mail : davidson@cesbio.cnes.fr
phone (33)(0)5.61.55.85.84
fax (33)(0)5.61.55.85.00
<>------------------------------------------------<>
This archive was generated by hypermail 2b29
: Tue Jan 02 2001 - 11:50:38 MET