(no subject)

From: Luigi Esposito-MACRO (Luigi.Salvatore.Esposito@bo.infn.it)
Date: Fri Jun 27 2003 - 10:29:56 MEST


Hello to all,
I suppose that the methods TTree::Draw(...) and TTree::Scan(...) do the
same things, the difference is that TTree::Draw(...) does an histogram,
while TTree::Scan(...) write on the standard output or on a file.
But I had this behavour:


root [7] Views->Draw("segments.eTx","abs(segments.eTy+0.008)<0.03 && 
abs(segments.eTx-0.155)<0.03")
(Int_t)120
root [8] Views->Scan("segments.eTx","abs(segments.eTy+0.008)<0.03 && 
abs(segments.eTx-0.155)<0.03")
************************
*    Row   * segments. *
************************
*       38 * 0.1630210 *
************************
==> 1 selected entry
(Int_t)1

In other words, I have 120 entries for the histograms while only 1 from 
the
Scan method.
Where is my misunderstanding?
Actually segments.eTx[] is a vector, but I'd like to scan over all the
elements of this vector.

I'm using ROOT v3.03/09 and you can find my root file (test1.root) and the 
necessary libraries (libEdb.so)  under /afs/infn.it/bo/user/luillo/public/
I have the same behavour also with ROOT v3.05/05

Thank you,

	Luillo


-- 



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