BOSS
7.1.0
BESIII Offline Software System
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
z
Typedefs
c
d
e
g
h
i
l
m
n
o
p
r
s
t
Enumerations
Enumerator
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
u
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
v
w
Enumerations
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
v
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Related Functions
:
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
w
x
Files
File List
File Members
All
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
!
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
h
i
j
k
l
m
n
p
r
s
t
u
v
w
z
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
WidgetSigma.h
Go to the documentation of this file.
1
//********************************************************************************
2
// This file is part of the Widget, a package for performing dE/dx calibration.
3
//
4
// Author: Jake Bennett
5
// Date: July 8, 2015
6
//
7
//
8
// For additional details, see the Widget document.
9
//
10
//********************************************************************************
11
#ifndef WIDGETSIGMA_H
12
#define WIDGETSIGMA_H
13
14
#include <math.h>
15
#include <iostream>
16
17
class
WidgetSigma
{
18
19
public
:
20
21
WidgetSigma
() {}
22
virtual
~WidgetSigma
() {};
23
24
double
sigmaCurve
(
double
*x,
double
*par ){
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
}
40
41
double
operator()
(
double
*x,
double
*par ){
42
return
sigmaCurve
(
x
,par);
43
}
44
};
45
#endif
f
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
x
Double_t x[10]
Definition:
DataBase/tau_mode.c:57
WidgetSigma
Definition:
WidgetSigma.h:17
WidgetSigma::WidgetSigma
WidgetSigma()
Definition:
WidgetSigma.h:21
WidgetSigma::operator()
double operator()(double *x, double *par)
Definition:
WidgetSigma.h:41
WidgetSigma::sigmaCurve
double sigmaCurve(double *x, double *par)
Definition:
WidgetSigma.h:24
WidgetSigma::~WidgetSigma
virtual ~WidgetSigma()
Definition:
WidgetSigma.h:22
source
Mdc
DedxCalibAlg
DedxCalibAlg-00-02-01
share
template
HadronCalib
Widget
Widget
WidgetHelpers
WidgetSigma.h
Generated by
1.9.6