NSWCalibTool - Replace suspicious TF1 by the std::function equivalent
Hi everybody,
- Although
TF1::Eval
claims to be a const method, it's always worth to have a closer look into its guts . As you can see, it calls a non-const function which is super suspicious to me. Given that the NSWCalibTool just uses it for a polynomial evaluation, it's better to replace it by a std::function.
Edited by Johannes Junggeburth