RE: [ROOT] help needed for a complicate question!

From: Philippe Canal (pcanal@fnal.gov)
Date: Fri Jun 29 2001 - 22:34:23 MEST


Hi Kai,

What you need is to created a TH3D (named for example histo) that has the
shape that you need (and you may want to have a larger number of bins) and
use

ntupleVertexRaw->Draw("_1.z:_1.y:_1.x>>histo", "","");

Philippe.

-----Original Message-----
From: Kai Yi [mailto:yik@fnal.gov]
Sent: Friday, June 29, 2001 3:31 PM
To: Philippe Canal
Cc: roottalk@pcroot.cern.ch
Subject: RE: [ROOT] help needed for a complicate question!


> 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.
Thanks for your response.
This works only for one aspect, what I want is more than that:
if all my  5<x,y,z<10, but I still want to draw them in a space
0<x,y,z<100, that is to say, I want a space,like,0<x,y,z<100,
then I do not care what the real value of x,y,z, if they are inside my
range, then draw it, if it is out of my range, throw it.
Thanks again!

Kai Yi



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