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.
|
description More...
#include <HpsFitResult.h>
Public Member Functions | |
HpsFitResult () | |
~HpsFitResult () | |
TFitResultPtr | getBkgFitResult () |
Get background fit result. | |
TFitResultPtr | getBkgToysFitResult () |
Get background toy model fit result. | |
TFitResultPtr | getCompFitResult () |
Get the complete fit result. | |
void | addLikelihood (double likelihood) |
description | |
void | addSignalYield (double signal_yield) |
description | |
double | getCorrectedMass () const |
Get the corrected mass. | |
double | getIntegral () |
Get the integral within the fit window. | |
double | getMass () const |
Get the mass hypothesis for the fit. | |
double | getQ0 () |
description | |
double | getPValue () |
description | |
double | getFullBkgRate () |
Get the background rate obtained from the signal+background hit at the mass hypo. | |
double | getFullBkgRateError () |
Get the background rate error from the signal+background fit at the mass hypo. | |
float | getSignalYield () |
Get the signal yield obtained from the signal+background fit. | |
float | getSignalYieldErr () |
Get the error of the signal yield. | |
double | getUpperLimit () |
Get the upper fit limit. | |
double | getUpperLimitPValue () |
Get the p-value at the upper limit. | |
double | getWindowSize () |
Get the size of the fit window. | |
std::vector< double > | getLikelihoods () |
Get the likelihoods. | |
std::vector< double > | getSignalYields () |
Get the signal yields. | |
void | setIntegral (double integral) |
Set the integral. | |
void | setQ0 (double q0) |
Set Q0. | |
void | setPValue (double p_value) |
Set the p-value. | |
void | setBkgFitResult (TFitResultPtr bkg_result) |
Set the result from the background only fit. | |
void | setBkgToysFitResult (TFitResultPtr bkg_toy_result) |
Set the result from the background only fit for generating toys. | |
void | setCompFitResult (TFitResultPtr comp_result) |
Set the result from the signal+background only fit. | |
void | setMass (double mass) |
Set mass hypothesis used for this fit. | |
void | setCorrectedMass (double cmass) |
Set the corrected mass. | |
void | setPolyOrder (int poly_order) |
Set the order polynomial used by the fitter. | |
void | setBkgModelType (FitFunction::BkgModel bkg_model) |
Sets the type of background fit function used by the fitter. | |
void | setUpperLimit (double upper_limit) |
Set the 2 sigma upper limit. | |
void | setUpperLimitPValue (double upper_limit_p_value) |
Set the p-value at the end of the upper limit calculation. | |
void | setWindowSize (double window_size) |
Set the size of the fit window used to get this results. | |
void | setBinWidth (double bin_width) |
Set the size of the fit window used to get this results. | |
Private Attributes | |
TFitResultPtr | bkg_result_ {nullptr} |
TFitResultPtr | bkg_toy_result_ {nullptr} |
TFitResultPtr | comp_result_ {nullptr} |
std::vector< double > | _likelihoods |
std::vector< double > | _signal_yields |
double | _integral {0} |
double | mass_hypo_ |
double | _cmass {0} |
double | q0_ |
double | p_value_ |
double | poly_order_ {0} |
FitFunction::BkgModel | bkg_model_ {FitFunction::BkgModel::EXP_CHEBYSHEV} |
double | upper_limit_ |
double | _upper_limit_p_value {-9999} |
double | window_size_ |
double | bin_width_ |
HpsFitResult | ( | ) |
Default constructor
Definition at line 3 of file HpsFitResult.cxx.
~HpsFitResult | ( | ) |
Definition at line 10 of file HpsFitResult.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
Get background toy model fit result.
Definition at line 36 of file HpsFitResult.h.
|
inline |
|
inline |
double getFullBkgRate | ( | ) |
Get the background rate obtained from the signal+background hit at the mass hypo.
Definition at line 12 of file HpsFitResult.cxx.
double getFullBkgRateError | ( | ) |
Get the background rate error from the signal+background fit at the mass hypo.
Definition at line 49 of file HpsFitResult.cxx.
|
inline |
Get the integral within the fit window.
Definition at line 71 of file HpsFitResult.h.
|
inline |
|
inline |
Get the mass hypothesis for the fit.
Definition at line 78 of file HpsFitResult.h.
|
inline |
|
inline |
|
inline |
Get the signal yield obtained from the signal+background fit.
Definition at line 113 of file HpsFitResult.h.
|
inline |
Get the error of the signal yield.
Definition at line 120 of file HpsFitResult.h.
|
inline |
|
inline |
Get the upper fit limit.
Definition at line 127 of file HpsFitResult.h.
|
inline |
Get the p-value at the upper limit.
Definition at line 134 of file HpsFitResult.h.
|
inline |
Get the size of the fit window.
Definition at line 141 of file HpsFitResult.h.
|
inline |
Set the size of the fit window used to get this results.
bin_width | The size of the fit window. |
Definition at line 257 of file HpsFitResult.h.
|
inline |
Set the result from the background only fit.
bkg_result | Result from the background only fit. |
Definition at line 187 of file HpsFitResult.h.
|
inline |
Sets the type of background fit function used by the fitter.
bkg_model | The background fit model. |
Definition at line 229 of file HpsFitResult.h.
|
inline |
Set the result from the background only fit for generating toys.
bkg_toy_result | Result from the background only fit with toy model. |
Definition at line 194 of file HpsFitResult.h.
|
inline |
Set the result from the signal+background only fit.
comp_result | Result from the signal+background only fit. |
Definition at line 201 of file HpsFitResult.h.
|
inline |
Set the corrected mass.
cmass | corrected mass |
Definition at line 215 of file HpsFitResult.h.
|
inline |
|
inline |
Set mass hypothesis used for this fit.
mass | The mass hypothesis. |
Definition at line 208 of file HpsFitResult.h.
|
inline |
Set the order polynomial used by the fitter.
poly_order | Polynomial order used by the fitter. |
Definition at line 222 of file HpsFitResult.h.
|
inline |
|
inline |
|
inline |
Set the 2 sigma upper limit.
upper_limit | The 2 sigma upper limit. |
Definition at line 236 of file HpsFitResult.h.
|
inline |
Set the p-value at the end of the upper limit calculation.
upper_limit_p_value | The p-value at the end of the upper limit calculation |
Definition at line 243 of file HpsFitResult.h.
|
inline |
Set the size of the fit window used to get this results.
window_size | The size of the fit window. |
Definition at line 250 of file HpsFitResult.h.
|
private |
corrected mass
Definition at line 282 of file HpsFitResult.h.
|
private |
Total number of events within the fit window.
Definition at line 276 of file HpsFitResult.h.
|
private |
description
Definition at line 270 of file HpsFitResult.h.
|
private |
description
Definition at line 273 of file HpsFitResult.h.
|
private |
p-value at the upper limit.
Definition at line 300 of file HpsFitResult.h.
|
private |
Definition at line 306 of file HpsFitResult.h.
|
private |
Type of background fit function to use.
Definition at line 294 of file HpsFitResult.h.
|
private |
Result from fit using a background model only.
Definition at line 261 of file HpsFitResult.h.
|
private |
Result from fit using a background model for generating toys.
Definition at line 264 of file HpsFitResult.h.
|
private |
Result from fit using a signal+background model.
Definition at line 267 of file HpsFitResult.h.
|
private |
Mass hypothesis.
Definition at line 279 of file HpsFitResult.h.
|
private |
p-value.
Definition at line 288 of file HpsFitResult.h.
|
private |
Order polynomial used by the fitter.
Definition at line 291 of file HpsFitResult.h.
|
private |
q0 value
Definition at line 285 of file HpsFitResult.h.
|
private |
2 sigma upper limit on the signal.
Definition at line 297 of file HpsFitResult.h.
|
private |
Definition at line 303 of file HpsFitResult.h.