RE: [ROOT] Drawing tree "array" variables

From: Philippe Canal (pcanal@popgtw.fnal.gov)
Date: Mon Nov 27 2000 - 23:26:34 MET


> If there is 10 events and ntrack=3 for each event, 
> 		if I do : t->Draw("var1");  I see 30 entries in my plot
> 			  t->Draw("var3");  I see 60 entries in my plot     
> 
> How can I do the equivalent of nt/plo 2.var3(ntrack,1) and  
> nt/plo 2.var3(ntrack,2), to see only the 30 entries corresponding to my
> splitted variables.

Hi Sabine, 

In recent versions of ROOT you can do:

	t->Draw("var3[][0]");
	t->Draw("var3[][1]"); 	

Philippe.



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:38 MET