BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
WidgetCurve Class Reference

#include <WidgetCurve.h>

Public Member Functions

 WidgetCurve ()
 
virtual ~WidgetCurve ()
 
double bgCurve (double *x, double *par)
 
double operator() (double *x, double *par)
 

Detailed Description

Definition at line 16 of file WidgetCurve.h.

Constructor & Destructor Documentation

◆ WidgetCurve()

WidgetCurve::WidgetCurve ( )
inline

Definition at line 20 of file WidgetCurve.h.

20{};

◆ ~WidgetCurve()

virtual WidgetCurve::~WidgetCurve ( )
inlinevirtual

Definition at line 21 of file WidgetCurve.h.

21{};

Member Function Documentation

◆ bgCurve()

double WidgetCurve::bgCurve ( double *  x,
double *  par 
)
inline

Definition at line 23 of file WidgetCurve.h.

23 {
24
25 // ************* FIX ME ******************
26 // redundant parameters 3 and 5
27 // ***************************************
28 double f = 0;
29 if( par[0] == 1 )
30 f = par[1]*pow(sqrt(x[0]*x[0]+1),par[3])/pow(x[0],par[3]) *
31 (par[2]-par[6]*log(pow(1/x[0],par[4])) ) - par[5]+exp(par[7]+par[8]*x[0]);
32 else if( par[0] == 2 )
33 f = par[1]*pow(x[0],3)+par[2]*x[0]*x[0]+par[3]*x[0]+par[4];
34 else if( par[0] == 3 )
35 f = -1.0*par[1]*log(par[4]+pow(1/x[0],par[2]))+par[3];
36
37 return f;
38 }
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
Double_t x[10]
EvtComplex exp(const EvtComplex &c)

Referenced by WidgetParameterization::dedxPrediction(), and operator()().

◆ operator()()

double WidgetCurve::operator() ( double *  x,
double *  par 
)
inline

Definition at line 40 of file WidgetCurve.h.

40 {
41 return bgCurve(x,par);
42 }
double bgCurve(double *x, double *par)
Definition: WidgetCurve.h:23

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