Re: [ROOT] TCut question

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Nov 24 2004 - 08:58:37 MET


Hi Boris,

Do:

TCut cut1 = "(epsd+depsd) < 2700 && (epsd+depsd) > 1400"
TCut cut2 = "trf > 330 && trf <900"
t->Draw("(epsd+depsd):trf",cut1 && cut2)

Rene Brun

Boris Skorodumov wrote:
> 
> Dear Rooters,
> 
> After this two lines:
> 
> TCut cut = "trf > 330 && trf <900";
> t->Draw("(epsd+depsd):trf","(epsd+depsd) < 2700 && (epsd+depsd) > 1400
> && cut","",30000,1);
> 
> I am getting:
> *ERROR 30 :
> Bad numerical expression : "cut"
> 
> cut is a string, how to incorporate it to selection string ?
> 
> Thank you,
> Boris.
> 
> --
> ------------------------------------------------
> |  Boris Skorodumov,
> |  Graduate Student, Physics Department,
> |  University of Notre Dame,
> |  Notre Dame, IN 46556, USA
> |  WWW:   www.nd.edu/~bskorodo
> ------------------------------------------------



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET