Hi there root experts,
I have been having some problems multiplying two TF1 functions together. The two functions I want to multiply are obtained from fitting histograms in a previous analysis. I’ve extracted these two functions from a .root file (which may be the cause this problem but I don’t know how to get around it…!)
It seems trivial and I can’t figure out what I’m doing wrong and I have tried to find solutions to this from similar posts but all the solutions and suggestions doesn’t seem to work for my code. Surely, there is an easy way to just multiply two TF1 objects…I would really appreciate your help!
I’ve attached the root file and my macro.
Also the error message I am getting is:
[quote]Double_t TFormula____id7650583996332259875(){ return {f1b}{f2b} ; }
^
Error in TFormula::Eval: Can’t find TFormula____id7650583996332259875 function prototype with arguments
Error in TFormula::ProcessFormula: “f1b” has not been matched in the formula expression
Error in TFormula::ProcessFormula: “f2b” has not been matched in the formula expression
Error in TFormula::ProcessFormula: Formula "f1bf2b" is invalid !
Error in TFormula::Eval: Formula is invalid and not ready to execute
f1b is unknown.
f2b is unknown.[/quote]
Please help! (Would appreciate any feedback, this is my first time using this forum!)
1512.03657_7TeV_histoFit_Function1.root (25 KB)
MyScript.C (1.22 KB)