Bug in parsing variable transformations

Hi,
I found a bug in declaring variable transformations. In particular the string is parsed incorrectly if the variable has brackets in the name.

e.g.

dataloader.AddVariable("abs(x)","F")
dataloader.AddVariable("y","F")
dataloader.AddVariable("z","F")

The following string option:
:VarTransform=N,G(abs(x), y):

will be parsed incorrectly because TMVA will not recognize the right bracket in abs(x) as part of the variable name, but as the closing bracket of G(). In this case the following error will be produced:
Dataset[dataset] : <ProcessOptions> Variable transform ', y)' unknown

Regards,
Alberto

Hi,

Thanks for the bug report. A bug will be filed to the issue tracker shortly. In the meanwhile, it should be possible to work around this issue by using dataloader->AddVariable(”abs_x := abs(x)”) and then transformining using :VarTransform=N,G(abs_x, y):.

Cheers,
Kim