9#include <reconstruction/utility/CDCDedxMeanPred.h>
21 f = par[1] * std::pow(std::sqrt(x[0] * x[0] + 1), par[3]) / std::pow(x[0], par[3]) *
22 (par[2] - par[5] * std::log(1 / x[0])) - par[4] + std::exp(par[6] + par[7] * x[0]);
24 f = par[1] * std::pow(x[0], 3) + par[2] * x[0] * x[0] + par[3] * x[0] + par[4];
26 f = -1.0 * par[1] * std::log(par[4] + std::pow(1 / x[0], par[2])) + par[3];
37 double A = 0, B = 0, C = 0;
45 double x[1]; x[0] = bg;
50 parsA[0] = 1; parsB[0] = 2; parsC[0] = 3;
51 for (
int i = 0; i < 15; ++i) {
53 else if (i < 11) parsB[i % 7 + 1] =
m_meanpars[i];
62 return (A * partA + B * partB + C * partC);
std::vector< double > getMeanVector() const
Return the mean vector from payload.
double meanCurve(double *x, double *par, int version) const
beta-gamma (bg) curve function
std::vector< double > m_meanpars
dE/dx mean parameters
double getMean(double bg)
Return the predicted mean value as a function of beta-gamma (bg)
Abstract base class for different kinds of events.