How to implement a function in AddTask code, and then pass the function to .cxx (analysis code )

Hi,
May I ask a simple question? I am doing the fit histogram, and use “expo” function.

After running the code , I can get some parameters of the function.


Now I want to implement the function in the AddTask ,but I don’t know how to do… After implementing the function, I should pass to the function to .cxx code to apply it…

Thank you in advance.
Tian


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


It’s not such a simple question. I have no clue what the “AddTask code” is, therefore it’s hard to help out here.

The only thing I can help with is this:
When you do a fit, use S as on option to save the result. Then, you can access the parameters. Look for the section Access to the fit result in the documentation.
https://root.cern.ch/doc/master/classTH1.html#a7e7d34c91d5ebab4fc9bba3ca47dabdd

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.