Hi,
There was a problem with TTree::Draw with the TCut arguments.
This problem has been fixed in the development version.
With this fix (available from our CVS repository), you can do things like:
TCut cut1 = "(px<0)"
ntuple=>Draw("py",cut1)
ntuple->Draw("py","pz"*cut1)
ntuple->Draw("py","pz*(px<0)")
With the current version 2.25/01, only the last form works.
Rene Brun
Kim Jungho wrote:
>
> Dear Rooters
>
> This is a simple question.
> I'd like to use cut with weighting.
>
> root> mytree->Draw("x","y*(x>0)"); <- works good
> But
> root> TCut cut1 = "x>0";
> root> mytree->Draw("x","y*(cut1)"); <- does not work
> *ERROR 26 :
> Unknown name : "cut1"
>
> Is there any simple way to use TCut with weighting?
>
> Best Regards,
> Jungho Kim
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> + Jungho Kim(jungho@ieplab.snu.ac.kr) +
> + Department of Physics, College of Natural Science +
> + Seoul National University, Seoul 151-742, Korea +
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:31 MET