hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
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
z
Functions
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
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
l
m
n
o
p
r
s
t
u
v
w
z
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
Files
File List
File Members
All
c
d
f
i
j
l
m
n
p
r
s
u
Functions
c
d
f
i
m
n
r
s
u
Variables
Typedefs
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
analysis
src
HpsFitResult.cxx
Go to the documentation of this file.
1
#include <
HpsFitResult.h
>
2
3
HpsFitResult::HpsFitResult
()
4
:
5
q0_(0),
6
p_value_(0),
7
upper_limit_(0) {
8
}
3
HpsFitResult::HpsFitResult
() {
…
}
9
10
HpsFitResult::~HpsFitResult
() { }
11
12
double
HpsFitResult::getFullBkgRate
() {
13
double
bkgRate = -1.0;
14
double
fitParams[6];
15
double
mass[1];
16
mass[0] =
mass_hypo_
;
17
for
(
int
ipar = 0; ipar <
poly_order_
+1; ipar++) {
18
fitParams[ipar] =
comp_result_
->GetParams()[ipar];
19
}
20
21
// Determine the type of background fit model.
22
bool
isChebyshev = (
bkg_model_
==
FitFunction::BkgModel::CHEBYSHEV
||
bkg_model_
==
FitFunction::BkgModel::EXP_CHEBYSHEV
);
23
bool
isExp = (
bkg_model_
==
FitFunction::BkgModel::EXP_CHEBYSHEV
||
bkg_model_
==
FitFunction::BkgModel::EXP_LEGENDRE
);
24
25
// Create the background function.
26
if
(
poly_order_
== 1 && isChebyshev) {
27
ChebyshevFitFunction
bkg_func(
mass_hypo_
,
window_size_
,
bin_width_
,
FitFunction::ModelOrder::FIRST
,
FitFunction::SignalFitModel::NONE
, isExp);
28
bkgRate = bkg_func(mass, fitParams);
29
}
else
if
(
poly_order_
== 1 && !isChebyshev) {
30
LegendreFitFunction
bkg_func(
mass_hypo_
,
window_size_
,
bin_width_
,
FitFunction::ModelOrder::FIRST
,
FitFunction::SignalFitModel::NONE
, isExp);
31
bkgRate = bkg_func(mass, fitParams);
32
}
else
if
(
poly_order_
== 3 && isChebyshev) {
33
ChebyshevFitFunction
bkg_func(
mass_hypo_
,
window_size_
,
bin_width_
,
FitFunction::ModelOrder::THIRD
,
FitFunction::SignalFitModel::NONE
, isExp);
34
bkgRate = bkg_func(mass, fitParams);
35
}
else
if
(
poly_order_
== 3 && !isChebyshev) {
36
LegendreFitFunction
bkg_func(
mass_hypo_
,
window_size_
,
bin_width_
,
FitFunction::ModelOrder::THIRD
,
FitFunction::SignalFitModel::NONE
, isExp);
37
bkgRate = bkg_func(mass, fitParams);
38
}
else
if
(
poly_order_
== 5 && isChebyshev) {
39
ChebyshevFitFunction
bkg_func(
mass_hypo_
,
window_size_
,
bin_width_
,
FitFunction::ModelOrder::FIFTH
,
FitFunction::SignalFitModel::NONE
, isExp);
40
bkgRate = bkg_func(mass, fitParams);
41
}
else
{
42
LegendreFitFunction
bkg_func(
mass_hypo_
,
window_size_
,
bin_width_
,
FitFunction::ModelOrder::FIFTH
,
FitFunction::SignalFitModel::NONE
, isExp);
43
bkgRate = bkg_func(mass, fitParams);
44
}
45
46
return
bkgRate;
47
}
12
double
HpsFitResult::getFullBkgRate
() {
…
}
48
49
double
HpsFitResult::getFullBkgRateError
() {
50
return
comp_result_
->GetErrors()[0];
51
}
49
double
HpsFitResult::getFullBkgRateError
() {
…
}
HpsFitResult.h
ChebyshevFitFunction
description
Definition
ChebyshevFitFunction.h:10
FitFunction::FIRST
@ FIRST
Definition
FitFunction.h:29
FitFunction::THIRD
@ THIRD
Definition
FitFunction.h:30
FitFunction::FIFTH
@ FIFTH
Definition
FitFunction.h:31
FitFunction::CHEBYSHEV
@ CHEBYSHEV
Definition
FitFunction.h:40
FitFunction::EXP_CHEBYSHEV
@ EXP_CHEBYSHEV
Definition
FitFunction.h:41
FitFunction::EXP_LEGENDRE
@ EXP_LEGENDRE
Definition
FitFunction.h:43
FitFunction::NONE
@ NONE
Definition
FitFunction.h:19
HpsFitResult::bin_width_
double bin_width_
Definition
HpsFitResult.h:306
HpsFitResult::comp_result_
TFitResultPtr comp_result_
Definition
HpsFitResult.h:267
HpsFitResult::poly_order_
double poly_order_
Definition
HpsFitResult.h:291
HpsFitResult::window_size_
double window_size_
Definition
HpsFitResult.h:303
HpsFitResult::~HpsFitResult
~HpsFitResult()
Definition
HpsFitResult.cxx:10
HpsFitResult::mass_hypo_
double mass_hypo_
Definition
HpsFitResult.h:279
HpsFitResult::HpsFitResult
HpsFitResult()
Definition
HpsFitResult.cxx:3
HpsFitResult::getFullBkgRate
double getFullBkgRate()
Get the background rate obtained from the signal+background hit at the mass hypo.
Definition
HpsFitResult.cxx:12
HpsFitResult::bkg_model_
FitFunction::BkgModel bkg_model_
Definition
HpsFitResult.h:294
HpsFitResult::getFullBkgRateError
double getFullBkgRateError()
Get the background rate error from the signal+background fit at the mass hypo.
Definition
HpsFitResult.cxx:49
LegendreFitFunction
description
Definition
LegendreFitFunction.h:11
Generated by
1.9.8