Example macro of using the TFeldmanCousins class in root.
get a FeldmanCousins calculation object with the default limits of calculating a 90% CL with the minimum signal value scanned = 0.0 and the maximum signal value scanned of 50.0
For 10 data observed with and estimated background
of 3 candidates, the Feldman-Cousins method of
calculating confidence limits gives:
Upper Limit = 13.505
Lower Limit = 2.635
at the 90% CL
void FeldmanCousins()
{
cout << "For " << Nobserved << " data observed with and estimated background"<<endl;
cout << "of " << Nbackground << " candidates, the Feldman-Cousins method of "<<endl;
cout << "calculating confidence limits gives:"<<endl;
cout << "\tUpper Limit = " << ul << endl;
cout << "\tLower Limit = " << ll << endl;
cout << "at the 90% CL"<< endl;
}
<div class="legacybox"><h2>Legacy Code</h2> TFeldmanCousins is a legacy interface: there will be no b...
Double_t CalculateUpperLimit(Double_t Nobserved, Double_t Nbackground)
given Nobserved and Nbackground, try different values of mu that give upper limits that are consisten...
- Author
- Adrian John Bevan bevan.nosp@m.@SLA.nosp@m.C.Sta.nosp@m.nfor.nosp@m.d.EDU
Definition in file FeldmanCousins.C.