Using TCuts

Hi,

I am having problems drawing histograms using TCuts.

It is fine when I do: TCut cut = " x < 3.0" ;

and then hist.Draw(…, cut);

however, I can’t seem to do this:
double xmax = 3.0;
TCut cut = “x < xmax”;
hist.Draw(…, cut);
Any idea what I am doing wrong?

Claire

You must transform your double to s string. Do:

double xmax = 3.0; TCut cut = Form("x < %g",xmax);

Rene