1#ifndef __HPS_FIT_RESULT_H__
2#define __HPS_FIT_RESULT_H__
5#include <TFitResultPtr.h>
void setCompFitResult(TFitResultPtr comp_result)
Set the result from the signal+background only fit.
void setBinWidth(double bin_width)
Set the size of the fit window used to get this results.
double getIntegral()
Get the integral within the fit window.
void setIntegral(double integral)
Set the integral.
TFitResultPtr getBkgFitResult()
Get background fit result.
void setBkgModelType(FitFunction::BkgModel bkg_model)
Sets the type of background fit function used by the fitter.
void setQ0(double q0)
Set Q0.
TFitResultPtr comp_result_
TFitResultPtr bkg_toy_result_
TFitResultPtr getCompFitResult()
Get the complete fit result.
void addLikelihood(double likelihood)
description
float getSignalYieldErr()
Get the error of the signal yield.
double getUpperLimit()
Get the upper fit limit.
void setPolyOrder(int poly_order)
Set the order polynomial used by the fitter.
void setCorrectedMass(double cmass)
Set the corrected mass.
double getUpperLimitPValue()
Get the p-value at the upper limit.
double _upper_limit_p_value
double getWindowSize()
Get the size of the fit window.
void addSignalYield(double signal_yield)
description
double getCorrectedMass() const
Get the corrected mass.
void setPValue(double p_value)
Set the p-value.
void setMass(double mass)
Set mass hypothesis used for this fit.
void setBkgToysFitResult(TFitResultPtr bkg_toy_result)
Set the result from the background only fit for generating toys.
double getPValue()
description
std::vector< double > _likelihoods
std::vector< double > getLikelihoods()
Get the likelihoods.
double getFullBkgRate()
Get the background rate obtained from the signal+background hit at the mass hypo.
void setUpperLimit(double upper_limit)
Set the 2 sigma upper limit.
TFitResultPtr bkg_result_
std::vector< double > _signal_yields
void setBkgFitResult(TFitResultPtr bkg_result)
Set the result from the background only fit.
FitFunction::BkgModel bkg_model_
float getSignalYield()
Get the signal yield obtained from the signal+background fit.
double getQ0()
description
double getFullBkgRateError()
Get the background rate error from the signal+background fit at the mass hypo.
void setUpperLimitPValue(double upper_limit_p_value)
Set the p-value at the end of the upper limit calculation.
TFitResultPtr getBkgToysFitResult()
Get background toy model fit result.
std::vector< double > getSignalYields()
Get the signal yields.
void setWindowSize(double window_size)
Set the size of the fit window used to get this results.
double getMass() const
Get the mass hypothesis for the fit.