Length of selection string in TTree::Draw

Hi,

When calling

tree->Draw(const char * var, const char * selection)

with ‘selection’ exceeding a certain length, I get the error message

Error in TTreeFormula::Compile: ‘)’ is expected

Is there a way to get around this and draw from a TTree with longer expressions for ‘selection’?

Thanks,

Marios

Hi,

I am not sure which limit you reached, however there is indeed some hard limits in TFormula and TTreeFormula that you can exceed (nor customize short of recompile ROOT).

You may want to consider switch to using a draw script (see the TTree::Draw reference guide documentation) or the result of MakeProxy or the result of MakeSelector.

Cheers,
Philippe.