TF1 FixParameter problem and feature request

I have following problem with TF2 in root shell. I want to fix parameter to the value to which it is currently set. I try to do this semi-automatically:

root [4] gagag->FixParameter(9, gagag->GetParameter(9));
Error: Symbol gagag is not defined in current scope (tmpfile):1:
Error: Failed to evaluate gagag->GetParameter(9)
*** Interpreter error recovered ***

Am I doing anything wrong? Ofcourse gagag->GetParameter(9) when written separately works.

Also here I would like to add a feature request - maybe you could add single parameter FixParameter(), which would fix parameter to it’s current value?

Lech Wiktor Piotrowski


This is a limitation of the CINT extension. I.e. I assume that ‘gaggag’ is actually stored in a file and you have never explicitly defined it. In this case, you can simply use:[ocde]ptr = gagag;
ptr->FixParameter(9, ptr->GetParameter(9));[/code]