11#include <framework/database/DBObjPtr.h>
13#include <reconstruction/dbobjects/CDCDedxMeanPars.h>
14#include <reconstruction/dbobjects/CDCDedxSigmaPars.h>
43 B2WARNING(
"No dE/dx sigma parameters!");
44 std::vector<double> sigmapar;
45 for (
int i = 0; i < 12; ++i)
46 sigmapar.push_back(1.0);
54 double sigmaCurve(
double* x,
const double* par,
int version)
const;
59 double getSigma(
double dedx,
double nhit,
double cos,
double timereso);
Class to hold the prediction of resolution depending dE/dx, nhit, and cos(theta)
double ionzPrediction(double dedx)
Return sigma from the ionization parameterization.
const DBObjPtr< CDCDedxSigmaPars > m_DBSigmaPars
db object for dE/dx resolution parameters
double sigmaCurve(double *x, const double *par, int version) const
resolution functions depending on dE/dx, nhit, and cos(theta)
double getSigma(double dedx, double nhit, double cos, double timereso)
Return the predicted resolution depending on dE/dx, nhit, and cos(theta)
double cosPrediction(double cos)
Return sigma from the cos parameterization.
std::vector< double > m_sigmapars
dE/dx resolution parameters
double nhitPrediction(double nhit)
Return sigma from the nhit parameterization.
std::vector< double > getSigmaVector() const
Return the resolution vector from payload.
Class for accessing objects in the database.
Abstract base class for different kinds of events.