17 if (!gROOT->GetClass(
"TFeldmanCousins"))
18 R__LOAD_LIBRARY(libPhysics);
26 Double_t Nobserved = 10.0;
27 Double_t Nbackground = 3.0;
29 Double_t ul = f.CalculateUpperLimit(Nobserved, Nbackground);
30 Double_t ll = f.GetLowerLimit();
32 cout <<
"For " << Nobserved <<
" data observed with and estimated background"<<endl;
33 cout <<
"of " << Nbackground <<
" candidates, the Feldman-Cousins method of "<<endl;
34 cout <<
"calculating confidence limits gives:"<<endl;
35 cout <<
"\tUpper Limit = " << ul << endl;
36 cout <<
"\tLower Limit = " << ll << endl;
37 cout <<
"at the 90% CL"<< endl;