133 if (quickJump < 0.0) quickJump = 0.0;
135 for(i = iLower+1; i <=
fNMuStep; i++) {
165 for(i = 0; i <
fNMax; i++) {
167 if(muBest[i]<0.0) muBest[i] = 0.0;
170 if(probMuBest[i] == 0.0)
r[i] = 0.0;
171 else r[i] = p[i]/probMuBest[i];
179 Int_t iMax = rank[0];
180 Int_t iMin = rank[0];
181 for(i = 0; i <
fNMax; i++) {
183 if(iMax < rank[i]) iMax = rank[i];
184 if(iMin > rank[i]) iMin = rank[i];
192 delete [] probMuBest;
221 if(newMuStep == 0.0) {
222 std::cout <<
"TFeldmanCousins::SetMuStep ERROR New step size is zero - unable to change value"<< std::endl;
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
void SetMuMin(Double_t newMin=0.0)
Double_t CalculateLowerLimit(Double_t Nobserved, Double_t Nbackground)
Double_t Prob(Int_t N, Double_t mu, Double_t B)
Int_t FindLimitsFromTable(Double_t mu)
void SetMuStep(Double_t newMuStep=0.005)
void SetMuMax(Double_t newMax=50.0)
Double_t CalculateUpperLimit(Double_t Nobserved, Double_t Nbackground)
TFeldmanCousins(Double_t newCL=0.9, TString options="")
~TFeldmanCousins() override
void ToLower()
Change string to lower-case.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
__device__ AFloat max(AFloat x, AFloat y)
Double_t Poisson(Double_t x, Double_t 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)