Belle II Software development
CDCDedxWidgetCurve Class Reference
Packages ยป cdc

Class to hold the beta-gamma (bg) mean function. More...

#include <CDCDedxWidgetCurve.h>

Public Member Functions

 CDCDedxWidgetCurve ()
 Constructor.
 
virtual ~CDCDedxWidgetCurve ()
 Destructor.
 
double meanCurve (double *x, const std::vector< double > &par) const
 calculate the predicted mean value as a function of beta-gamma (bg) this is done with a different function depending on the value of bg
 

Detailed Description

Class to hold the beta-gamma (bg) mean function.

Definition at line 23 of file CDCDedxWidgetCurve.h.

Constructor & Destructor Documentation

โ—† CDCDedxWidgetCurve()

CDCDedxWidgetCurve ( )
inline

Constructor.

Definition at line 30 of file CDCDedxWidgetCurve.h.

30{};

โ—† ~CDCDedxWidgetCurve()

virtual ~CDCDedxWidgetCurve ( )
inlinevirtual

Destructor.

Definition at line 35 of file CDCDedxWidgetCurve.h.

35{};

Member Function Documentation

โ—† meanCurve()

double meanCurve ( double *  x,
const std::vector< double > &  par 
) const
inline

calculate the predicted mean value as a function of beta-gamma (bg) this is done with a different function depending on the value of bg

Definition at line 42 of file CDCDedxWidgetCurve.h.

43 {
44 double f = 0;
45
46 if (par[0] == 1) {
47 if (par.size() == 8)
48 f = par[1] * std::pow(std::sqrt(x[0] * x[0] + 1), par[3]) / std::pow(x[0], par[3]) *
49 (par[2] - par[5] * std::log(1 / x[0])) - par[4] + std::exp(par[6] + par[7] * x[0]);
50 } else if (par[0] == 2) {
51 if (par.size() == 5)
52 f = par[1] * std::pow(x[0], 3) + par[2] * x[0] * x[0] + par[3] * x[0] + par[4];
53 } else if (par[0] == 3) {
54 if (par.size() == 5)
55 f = -1.0 * par[1] * std::log(par[4] + std::pow(1 / x[0], par[2])) + par[3];
56 }
57 return f;
58 }

The documentation for this class was generated from the following file: