ROOT 6.13/01 Reference Guide |
Class to calculate the CL upper limit using the Feldman-Cousins method as described in PRD V57 #7, p3873-3889.
The default confidence interval calculated using this method is 90% This is set either by having a default the constructor, or using the appropriate fraction when instantiating an object of this class (e.g. 0.9)
The simple extension to a gaussian resolution function bounded at zero has not been addressed as yet -> `time is of the essence' as they write on the wall of the maze in that classic game ...
=> depending on your desired precision: The initial values of fMuMin, fMuMax, fMuStep and fNMax are those used in the PRD:
but there is total flexibility in changing this should you desire.
see example of use in $ROOTSYS/tutorials/math/FeldmanCousins.C
see note about: "Should I use TRolke, TFeldmanCousins, TLimit?" in the TRolke class description.
Copyright Liverpool University 2001 bevan @sla c.sta nfor d.edu
Definition at line 47 of file TFeldmanCousins.h.
Public Member Functions | |
TFeldmanCousins (Double_t newCL=0.9, TString options="") | |
Constructor. More... | |
virtual | ~TFeldmanCousins () |
Double_t | CalculateLowerLimit (Double_t Nobserved, Double_t Nbackground) |
given Nobserved and Nbackground, try different values of mu that give lower limits that are consistent with Nobserved. More... | |
Double_t | CalculateUpperLimit (Double_t Nobserved, Double_t Nbackground) |
given Nobserved and Nbackground, try different values of mu that give upper limits that are consistent with Nobserved. More... | |
Double_t | GetCL (void) const |
Double_t | GetLowerLimit (void) const |
Double_t | GetMuMax (void) const |
Double_t | GetMuMin (void) const |
Double_t | GetMuStep (void) const |
Double_t | GetNbackground (void) const |
Double_t | GetNMax (void) const |
Double_t | GetNobserved (void) const |
Double_t | GetUpperLimit (void) const |
void | SetCL (Double_t newCL) |
void | SetMuMax (Double_t newMax=50.0) |
Set maximum value of signal to use in calculating the tables. More... | |
void | SetMuMin (Double_t newMin=0.0) |
void | SetMuStep (Double_t newMuStep=0.005) |
Set the step in signal to use when generating tables. More... | |
void | SetNbackground (Double_t Nbg) |
void | SetNobserved (Double_t NObs) |
Protected Member Functions | |
Int_t | FindLimitsFromTable (Double_t mu) |
calculate the probability table for a given mu for n = 0, NMAX and return 1 if the number of observed events is consistent with the CL bad More... | |
Double_t | Prob (Int_t N, Double_t mu, Double_t B) |
Calculate the poissonian probability for a mean of mu+B events with a variance of N. More... | |
Protected Attributes | |
Double_t | fCL |
Double_t | fLowerLimit |
Double_t | fMuMax |
Double_t | fMuMin |
Double_t | fMuStep |
Double_t | fNbackground |
Int_t | fNMax |
Int_t | fNMuStep |
Double_t | fNobserved |
Int_t | fQUICK |
Double_t | fUpperLimit |
#include <TFeldmanCousins.h>
TFeldmanCousins::TFeldmanCousins | ( | Double_t | newCL = 0.9 , |
TString | options = "" |
||
) |
Constructor.
Definition at line 57 of file TFeldmanCousins.cxx.
|
virtual |
Definition at line 79 of file TFeldmanCousins.cxx.
Double_t TFeldmanCousins::CalculateLowerLimit | ( | Double_t | Nobserved, |
Double_t | Nbackground | ||
) |
given Nobserved and Nbackground, try different values of mu that give lower limits that are consistent with Nobserved.
The closed interval (plus any stragglers) corresponds to the F&C interval
Definition at line 88 of file TFeldmanCousins.cxx.
Double_t TFeldmanCousins::CalculateUpperLimit | ( | Double_t | Nobserved, |
Double_t | Nbackground | ||
) |
given Nobserved and Nbackground, try different values of mu that give upper limits that are consistent with Nobserved.
The closed interval (plus any stragglers) corresponds to the F&C interval
Definition at line 100 of file TFeldmanCousins.cxx.
|
protected |
calculate the probability table for a given mu for n = 0, NMAX and return 1 if the number of observed events is consistent with the CL bad
Definition at line 155 of file TFeldmanCousins.cxx.
|
inline |
Definition at line 93 of file TFeldmanCousins.h.
|
inline |
Definition at line 90 of file TFeldmanCousins.h.
|
inline |
Definition at line 96 of file TFeldmanCousins.h.
|
inline |
Definition at line 95 of file TFeldmanCousins.h.
|
inline |
Definition at line 97 of file TFeldmanCousins.h.
|
inline |
Definition at line 92 of file TFeldmanCousins.h.
|
inline |
Definition at line 98 of file TFeldmanCousins.h.
|
inline |
Definition at line 91 of file TFeldmanCousins.h.
|
inline |
Definition at line 89 of file TFeldmanCousins.h.
|
protected |
Calculate the poissonian probability for a mean of mu+B events with a variance of N.
Definition at line 201 of file TFeldmanCousins.cxx.
|
inline |
Definition at line 102 of file TFeldmanCousins.h.
void TFeldmanCousins::SetMuMax | ( | Double_t | newMax = 50.0 | ) |
Set maximum value of signal to use in calculating the tables.
Definition at line 209 of file TFeldmanCousins.cxx.
|
inline |
Definition at line 104 of file TFeldmanCousins.h.
void TFeldmanCousins::SetMuStep | ( | Double_t | newMuStep = 0.005 | ) |
Set the step in signal to use when generating tables.
Definition at line 219 of file TFeldmanCousins.cxx.
|
inline |
Definition at line 101 of file TFeldmanCousins.h.
|
inline |
Definition at line 100 of file TFeldmanCousins.h.
|
protected |
Definition at line 49 of file TFeldmanCousins.h.
|
protected |
Definition at line 51 of file TFeldmanCousins.h.
|
protected |
Definition at line 55 of file TFeldmanCousins.h.
|
protected |
Definition at line 54 of file TFeldmanCousins.h.
|
protected |
Definition at line 56 of file TFeldmanCousins.h.
|
protected |
Definition at line 53 of file TFeldmanCousins.h.
|
protected |
Definition at line 58 of file TFeldmanCousins.h.
|
protected |
Definition at line 57 of file TFeldmanCousins.h.
|
protected |
Definition at line 52 of file TFeldmanCousins.h.
|
protected |
Definition at line 59 of file TFeldmanCousins.h.
|
protected |
Definition at line 50 of file TFeldmanCousins.h.