134 if (quickJump < 0.0) quickJump = 0.0;
136 for(i = iLower+1; i <=
fNMuStep; i++) {
166 for(i = 0; i <
fNMax; i++) {
168 if(muBest[i]<0.0) muBest[i] = 0.0;
171 if(probMuBest[i] == 0.0)
r[i] = 0.0;
172 else r[i] =
p[i]/probMuBest[i];
180 Int_t iMax = rank[0];
181 Int_t iMin = rank[0];
182 for(i = 0; i <
fNMax; i++) {
184 if(iMax < rank[i]) iMax = rank[i];
185 if(iMin > rank[i]) iMin = rank[i];
193 delete [] probMuBest;
222 if(newMuStep == 0.0) {
223 std::cout <<
"TFeldmanCousins::SetMuStep ERROR New step size is zero - unable to change value"<< std::endl;
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
<div class="legacybox"><h2>Legacy Code</h2> TFeldmanCousins is a legacy interface: there will be no b...
void SetMuMin(Double_t newMin=0.0)
Double_t CalculateLowerLimit(Double_t Nobserved, Double_t Nbackground)
given Nobserved and Nbackground, try different values of mu that give lower limits that are consisten...
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.
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...
void SetMuStep(Double_t newMuStep=0.005)
Set the step in signal to use when generating tables.
void SetMuMax(Double_t newMax=50.0)
Set maximum value of signal to use in calculating the tables.
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...
TFeldmanCousins(Double_t newCL=0.9, TString options="")
Constructor.
~TFeldmanCousins() override
void ToLower()
Change string to lower-case.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Double_t Poisson(Double_t x, Double_t par)
Computes the Poisson distribution function for (x,par).
void Sort(Index n, const Element *a, Index *index, Bool_t down=kTRUE)
Sort the n elements of the array a of generic templated type Element.
static uint64_t sum(uint64_t i)