Hi, I am not sure if this is what you are looking for but you can do ntupleVertexRaw->Draw("_1.z:_1.y:_1.x", "_1.z<60 && _1.y<20 && _1.x<10", "", 3292, 0); Philippe. -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Kai Yi Sent: Friday, June 29, 2001 1:07 PM To: roottalk@pcroot.cern.ch Subject: [ROOT] help needed for a complicate question! Hi, All Experts, Suppose I want to draw a cloud,or a density picture According to some probability, I generated a lot of coordinates (x,y,z) which reflect the density in 3D space. I then put x,y,z into a ntuple (tree). So my ntuple is like: myTree | | | x y z Then I have the following operation: new TBrowser(); From the browser, find the tree, clich right button on my mouse and choose StartViewer, on this TreeViewer, I put _1.x into red X, _1.y into red Y, _1.z into red Z. Then I press blue Draw, I get the cloud or density 3D picture. I noticed that root automatically generate a command: ntupleVertexRaw->Draw("_1.z:_1.y:_1.x", "", "", 3292, 0); My question is: How to set the range of x,y,z? right now I do not have control over the range of x,y,z. Is it possible to set range somewhere, or there are some other ways to do the same thing? Thanks a lot! Kai Yi
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:50 MET