46void rs_numbercountingutils()
76 double sExpected = 50;
77 double bExpected = 100;
78 double relativeBkgUncert = 0.1;
80 double pExp = NumberCountingUtils::BinomialExpP(sExpected, bExpected, relativeBkgUncert);
81 double zExp = NumberCountingUtils::BinomialExpZ(sExpected, bExpected, relativeBkgUncert);
82 cout <<
"expected p-value =" << pExp <<
" Z value (Gaussian sigma) = " << zExp << endl;
86 double observed = 150;
87 double pObs = NumberCountingUtils::BinomialObsP(observed, bExpected, relativeBkgUncert);
88 double zObs = NumberCountingUtils::BinomialObsZ(observed, bExpected, relativeBkgUncert);
89 cout <<
"observed p-value =" << pObs <<
" Z value (Gaussian sigma) = " << zObs << endl;
109 double pExpWithTau = NumberCountingUtils::BinomialWithTauExpP(sExpected, bExpected, tau);
110 double zExpWithTau = NumberCountingUtils::BinomialWithTauExpZ(sExpected, bExpected, tau);
111 cout <<
"expected p-value =" << pExpWithTau <<
" Z value (Gaussian sigma) = " << zExpWithTau << endl;
115 double pObsWithTau = NumberCountingUtils::BinomialWithTauObsP(observed, bExpected, tau);
116 double zObsWithTau = NumberCountingUtils::BinomialWithTauObsZ(observed, bExpected, tau);
117 cout <<
"observed p-value =" << pObsWithTau <<
" Z value (Gaussian sigma) = " << zObsWithTau << endl;
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Namespace for the RooStats classes.