Re: TNtuple or TTree Selection.

Rene Brun (Rene.Brun@cern.ch)
Thu, 23 Oct 1997 14:42:45 +0200


Patrice Lebrun wrote:
>
> Hi,
>
> TTree::Draw or TNtuple::Draw seems to be not easy to used with very
> large Text_t or TCut expression
>
> example:
> ntuple.Draw("Very big expression ....","Very complicated cuts");
>
> Is any other ways to do that and how to use these ?
>

You have the choice in creating a char *selection string yourself
via sprintf or equivalent or use the TCut class
see http://root.cern.ch/root/html/TCut.html

You can use the && and ||, etc operators with TCut objects (or
graphical cuts defined with TCutG objects).

Rene Brun