47 void rs_numbercountingutils()
77 double sExpected = 50;
78 double bExpected = 100;
79 double relativeBkgUncert = 0.1;
83 cout <<
"expected p-value ="<< pExp <<
" Z value (Gaussian sigma) = "<< zExp << endl;
87 double observed = 150;
90 cout <<
"observed p-value ="<< pObs <<
" Z value (Gaussian sigma) = "<< zObs << endl;
113 cout <<
"expected p-value ="<< pExpWithTau <<
" Z value (Gaussian sigma) = "<< zExpWithTau << endl;
119 cout <<
"observed p-value ="<< pObsWithTau <<
" Z value (Gaussian sigma) = "<< zObsWithTau << endl;
Double_t BinomialWithTauObsP(Double_t nObs, Double_t bExp, Double_t tau)
Double_t BinomialObsP(Double_t nObs, Double_t, Double_t fractionalBUncertainty)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t tau
Double_t BinomialWithTauObsZ(Double_t nObs, Double_t bExp, Double_t tau)
Double_t BinomialExpZ(Double_t sExp, Double_t bExp, Double_t fractionalBUncertainty)
Namespace for the RooStats classes.
Double_t BinomialExpP(Double_t sExp, Double_t bExp, Double_t fractionalBUncertainty)
Double_t BinomialWithTauExpP(Double_t sExp, Double_t bExp, Double_t tau)
Double_t BinomialObsZ(Double_t nObs, Double_t bExp, Double_t fractionalBUncertainty)
Double_t BinomialWithTauExpZ(Double_t sExp, Double_t bExp, Double_t tau)