Re: Separate selections for 2D-plots

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Sep 23 1998 - 01:53:24 MEST


Manuel Sanchez wrote:
> 
> Hi Rooters,
> 
> Is it difficult to add support in TTree::Draw() for separate selections
> in 2D and 3D plots?. I'll explain myself; the idea is to do things like:
> 
> T.Draw("time:time","sector==1:sector==2")
> 
> So i can do a plot of times in sector 1 against times in sector 2
> eventhough i have all the times in one single branch. BTW, is there
> another way to do this?
> 
> Would it be enough to use fSelect1,fSelect2 and fSelect3, instead of
> only fSelect,  in the TTree class?
> 

Manuel,
I do not understand your Tree structure. Could you send me the
result of T.Print().
In case you have two branches (say sector1 and sector2) with leaves
having the same name, you can resolve the ambiguitywith a command
like
  T.Draw("sector1.time:sector2.time)

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:38 MET