8 #include "GaudiKernel/MsgStream.h"
38 const unsigned order) {
39 const auto [minT, maxT] =
interval(dataPoints);
52 const unsigned order) {
54 const auto [minT, maxT] =
interval(dataPoints);
67 const unsigned order) {
68 const auto [minT, maxT] =
interval(dataPoints);
80 return std::make_unique<RtChebyshev>(
chebyFit(dataPoints,
order));
83 return std::make_unique<TrChebyshev>(
chebyFit(dataPoints,
order));
86 return std::make_unique<RtResolutionChebyshev>(
chebyFit(dataPoints,
order));
89 const double relUnc,
const unsigned order) {
91 chebyCoeff.erase(chebyCoeff.begin(), chebyCoeff.begin() +2);
92 return std::make_unique<RadiusResolutionChebyshev>(chebyCoeff, rtRelPtr);
115 for (
unsigned i = 0;
i < dataPoints.size();
i++) {
116 pars[2 *
i] = dataPoints[
i].x1();
117 pars[2 *
i + 1] = dataPoints[
i].x2();
122 unsigned nb_points(100);
124 std::vector<double> rt_param(nb_points + 2);
129 rt_param[0] = rt.
tLower();
132 return std::make_unique<RtRelationLookUp>(rt_param);