Home | News | Documentation | Download

TString use in call to TMinuit::mnpout


#1

Hi everyone,

I’ve successfully run minuit.Migrad to minimize a likelihood function and now want to access the parameter information via mnpout. I’ve found that the second variable in the call to mnpout needs to be a TString. Can anyone please help me do that in c++ as the language doesn’t have such a data type.

Thanks in advance
Greg


#2

TString is a ROOT type. In a simple interpreted macro you can just use. In a compiled macro or application add #include "TString.h" in your code.


#3

Brilliant, many thanks. I did that and then used TString in a declaration before calling the ROOT subroutine and it all worked fine.