Re: [ROOT] Inverse cut selection

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Oct 25 2000 - 11:51:22 MEST


Hi Manoel,
You should put the ! inside the quotes, eg

ntuple->Draw("t:E","px<0 && py>0")
ntuple->Draw("t:E","!(px<0 && py>0")

or
TCut cut="px<0 && py>0"
ntuple->Draw("t:E",cut)
ntuple->Draw("t:E",!cut)

Rene Brun

Manoel Couder wrote:
> 
> I have a ntuple and a cut in this ntuple.
> I can draw the ntuple selection by:
> 
> ntuple->Draw("t:E","MyCut");
> 
> How do I draw the inverse selection.
> Something like...
> ntuple->Draw("t:E",!"MyCut");
> 
>  cheers,
> 
> Manoel.



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:35 MET