64 oocoutE(
nullptr, Plotting) <<
"RooHistError::getPoissonInterval: cannot calculate interval for n = " <<
n
69 oocoutE(
nullptr, Plotting) <<
"RooHistError::getPoissonInterval: nSigma must be > 0, got " <<
nSigma << std::endl;
75 const double beta = std::erf(
nSigma / std::sqrt(2.0));
76 const double alpha = 1.0 - beta;
91 const double a2 = 0.5 * alpha;
107 oocoutE(
nullptr,Plotting) <<
"RooHistError::getPoissonInterval: cannot calculate interval for n,m = " <<
n <<
"," <<
m << std::endl;
112 if(
n == 0 &&
m == 0) {
119 if ((
n>100&&
m>100)) {
122 double asym = 1.0*(
N-M)/(
N+M) ;
170 oocoutE(
nullptr,Plotting) <<
"RooHistError::getPoissonInterval: cannot calculate interval for n,m = " <<
n <<
"," <<
m << std::endl;
175 if(
n == 0 &&
m == 0) {
185 double asym = 1.0*(
N)/(
N+M) ;
239 double beta= std::erf(
nSigma/sqrt(2.));
240 double alpha= 0.5*(1-beta);
249 if (
Qu && (
nullptr ==
Ql ||
loProb > alpha + beta)) {
257 else if(
Ql && (
nullptr ==
Qu ||
hiProb < alpha)) {
274 if(!ok)
oocoutE(
nullptr,Plotting) <<
"RooHistError::getInterval: failed to find root(s)" << std::endl;
287 double min(
f.getMinLimit(1));
288 double max(
f.getMaxLimit(1));
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t target
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
Implement the abstract 1-dimensional root finding interface using the Brent-Decker method.
Singleton class used to calculate the error bars for each bin of a RooHist object.
bool getBinomialIntervalAsym(Int_t n, Int_t m, double &a1, double &a2, double nSigma=1) const
Return 'nSigma' binomial confidence interval for (n,m).
static const RooHistError & instance()
Return a reference to a singleton object that is created the first time this method is called.
bool getBinomialIntervalEff(Int_t n, Int_t m, double &a1, double &a2, double nSigma=1) const
Return 'nSigma' binomial confidence interval for (n,m).
bool getInterval(const RooAbsFunc *Qu, const RooAbsFunc *Ql, double pointEstimate, double stepSize, double &lo, double &hi, double nSigma) const
Calculate a confidence interval using the cumulative functions provided.
double seek(const RooAbsFunc &f, double startAt, double step, double value) const
Scan f(x)-value until it changes sign.
bool getPoissonInterval(Int_t n, double &mu1, double &mu2, double nSigma=1) const
Calculate a confidence interval for the expected number of events given n observed (unweighted) event...
static RooAbsFunc * createPoissonSum(Int_t n)
Create and return a PoissonSum function binding.
static RooAbsFunc * createBinomialSum(Int_t n, Int_t m, bool eff)
Create and return a BinomialSum function binding.
double chisquared_quantile_c(double z, double r)
Inverse ( ) of the cumulative distribution function of the upper tail of the distribution with degr...
double chisquared_quantile(double z, double r)
Inverse ( ) of the cumulative distribution function of the lower tail of the distribution with degr...