BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
WidgetSigma Class Reference

#include <WidgetSigma.h>

Public Member Functions

 WidgetSigma ()
 
virtual ~WidgetSigma ()
 
double sigmaCurve (double *x, double *par)
 
double operator() (double *x, double *par)
 

Detailed Description

Definition at line 17 of file WidgetSigma.h.

Constructor & Destructor Documentation

◆ WidgetSigma()

WidgetSigma::WidgetSigma ( )
inline

Definition at line 21 of file WidgetSigma.h.

21{}

◆ ~WidgetSigma()

virtual WidgetSigma::~WidgetSigma ( )
inlinevirtual

Definition at line 22 of file WidgetSigma.h.

22{};

Member Function Documentation

◆ operator()()

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

Definition at line 41 of file WidgetSigma.h.

41 {
42 return sigmaCurve(x,par);
43 }
double sigmaCurve(double *x, double *par)
Definition: WidgetSigma.h:24

◆ sigmaCurve()

double WidgetSigma::sigmaCurve ( double *  x,
double *  par 
)
inline

Definition at line 24 of file WidgetSigma.h.

24 {
25
26 // sometimes we want to constrain certain parameters
27 double f = 0;
28 if( par[0] == 1 ){
29 // return dedx parameterization
30 f = par[1]+par[2]*x[0];
31 }
32 else if( par[0] == 2 ){
33 // return nhit or sin(theta) parameterization
34 f = par[1]*pow(x[0],4)+par[2]*pow(x[0],3)+
35 par[3]*x[0]*x[0]+par[4]*x[0]+par[5];
36 }
37
38 return f;
39 }
double x[1000]
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")

Referenced by WidgetParameterization::nhitPrediction(), operator()(), WidgetParameterization::resPrediction(), WidgetParameterization::sigmaPrediction(), and WidgetParameterization::sinPrediction().


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