Performing math on a histogram!1

hey guys,

in TChain I would like to perform math on a leaf in the root tree. basically, I would like to do something such as

chain->Draw("event.blah1*e^(event.blah2)", *cut1 && *cut2);

the restriction is that the first argument in the " " must be a string.

unfortunately I only know how to code numbers into a string via Form, and then %d or %g referring to two arguments. I am not sure how to code in expressions such as e^(variable).

thanks,

fertileneutrino

Hi,

For e^ use TMath::Exp(event.blah2).

Cheers,
Philippe.