Re: [ROOT] Question about Surface picture

From: Kai Yi (yik@fnal.gov)
Date: Mon Jan 29 2001 - 18:22:17 MET


Hi, Rene,
    Thank you very much! It works this way. But I have another question:
Where to put the cut condition like abs(x)<0.2? I tried this:
tree.Draw("y:x","prob","surf1","abs(x)<0.2");
tree.Draw("y:x","prob","abs(x)<0.2","surf1");
Both do not work.
Thank you very much!

Kai Yi

On Sat, 27 Jan 2001, Rene Brun wrote:

> Hi Kai,
> I am not sure to understand your question.
> Do you want to create a 2-d histogram of x versus y
> filling eacg cell with the Prob values ? If yes, do
>   tree.Draw("y:x","prob","surf1");
> 
> Rene Brun
> 
> On Fri, 26 Jan 2001, Kai Yi wrote:
> 
> >  Hi, Everyone, 
> >      I have a specific question to ask, anyone can help me?
> >      Suppose I have a ntuple(tree), it has the following leaves:
> >      nEvent   //trigger number
> >      x        //x coordinate
> >      y        //y coordinate
> >      z        //z coordinate
> >      prob     //some Prob. based on x,y,z
> >  
> >  I want to draw a surface picure like this: x->y->Prob 
> >  here I need to specify the trigger no.--nEvent, about z direction, it is a
> >  integrate.
> >  I tried this from treeViewer, it draw me a 3D picture, it is point based
> >  picture, I want a surface picture(more smoothly). I tried to put "Surf"
> >  into Gopt box, it does not work.
> >  Anyone can help me?
> >  Thanks a lot
> >  
> >  
> >  Kai YI 
> >  
> >  
> >  
> > 
> 



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:34 MET