Print parameter of function (TF1)

I am try to print the parameters in python for a TF1 class.

fsig = ROOT.TF1(“fsig”,“[Constant]*TMath::Gaus(x,[Mass],[Sigma])”)
fbkg = ROOT.TF1(“fbkg”,“[Constant]exp(-([a1]x)/100.-[a2](x/100)(x/100))”)
fmodel = ROOT.TF1(“fmodel”,“NSUM(fsig,fbkg)”,110,160)

I need to print the initial parameters in fmodel.


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Python
Compiler: Not Provided


Try

fmodel.Print("V")
1 Like