Hi,
Somewhere in between of root versions 3 and 5 the behavior of tree->SetAlias is changed in a way that my old script do not work anymore. Why it do not accept a constant as an alias??
Example:
root [7] tracks->SetAlias(“x”,“3”);
root [8] tracks.Draw(“npl-x”)
Error in TTreeFormula::Compile: Bad numerical expression : "3"
Error in TTreeFormula::DefinedVariable: The substitution of the alias “x” by “3” failed.
If I just change
tracks->SetAlias(“x”,“3”)
to
tracks->SetAlias(“x”,“1*3”)
It’s suddenly stops to complain.
I think this is bug-like behavior and should be corrected.
Regards,
Valeri Tioukov